Skip to content

Commit

Permalink
MNT: Force Cartopy to always use the global context
Browse files Browse the repository at this point in the history
We don't guarantee thread-safety within Cartopy anyways, so we should
just apply this every time.
  • Loading branch information
greglucas committed Aug 29, 2021
1 parent 6867415 commit dea2d9d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/cartopy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

from ._version import version as __version__ # noqa: F401
import tempfile
from pyproj import set_use_global_context
set_use_global_context(active=True)

__document_these__ = ['config']

Expand Down

0 comments on commit dea2d9d

Please sign in to comment.