Skip to content

Commit

Permalink
MNT: Remove code disabling Pint array fallback
Browse files Browse the repository at this point in the history
This was completely removed in Pint 0.11.
  • Loading branch information
dopplershift committed Apr 29, 2024
1 parent 2fef240 commit b236fe0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
4 changes: 0 additions & 4 deletions conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@
import metpy.calc
import metpy.units

# Need to disable fallback before importing pint
os.environ['PINT_ARRAY_PROTOCOL_FALLBACK'] = '0'
import pint # noqa: I100, E402


def get_mod_version(modname):
"""Get the version for a module."""
Expand Down
1 change: 0 additions & 1 deletion src/metpy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

# Must occur before below imports
warnings.filterwarnings('ignore', 'numpy.dtype size changed')
os.environ['PINT_ARRAY_PROTOCOL_FALLBACK'] = '0'

from ._version import get_version # noqa: E402
from .xarray import * # noqa: F401, F403, E402
Expand Down

0 comments on commit b236fe0

Please sign in to comment.