Skip to content

Improve how PyGMT loads the GMT library #867

Closed

Description

@seisman

A few thoughts on the design of loading the library as a whole (might be out of scope for this PR but worth mentioning):

  • I initially made the Session class load the library when it's used to avoid doing this work at import time. Mostly so we wouldn't have GMTLibNotFoundError at import.
  • That clearly didn't work because we need to call begin at import for this whole thing to work.
  • So it might be time to rethink loading libgmt in the class instead of as a global instead to avoid searching for it every time.
  • Or we figure out a way to not call begin at import time.

Originally posted by @leouieda in #702 (comment)

Activity

  1. added
    enhancement
    on Feb 12, 2021
  2. added
    help wanted
    on Nov 8, 2021
  3. added this to the 1.0.0 milestone on Nov 8, 2021
  4. modified the milestones: 1.0.0, 0.11.0 on Jan 2, 2024
  5. removed
    help wanted
    on Jan 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions