Skip to content

Commit 754fc47

Browse files
committed
MNT: Remove code disabling Pint array fallback
This was completely removed in Pint 0.11.
1 parent 9df6a85 commit 754fc47

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

conftest.py

-5
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
import contextlib
77
import importlib
8-
import os
98
import textwrap
109

1110
import matplotlib.pyplot
@@ -17,10 +16,6 @@
1716
import metpy.calc
1817
import metpy.units
1918

20-
# Need to disable fallback before importing pint
21-
os.environ['PINT_ARRAY_PROTOCOL_FALLBACK'] = '0'
22-
import pint # noqa: I100, E402
23-
2419

2520
def pytest_report_header():
2621
"""Add dependency information to pytest output."""

src/metpy/__init__.py

-2
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,10 @@
44
"""Tools for reading, calculating, and plotting with weather data."""
55

66
# What do we want to pull into the top-level namespace?
7-
import os
87
import warnings
98

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

1412
from ._version import get_version # noqa: E402
1513
from .xarray import * # noqa: F401, F403, E402

0 commit comments

Comments
 (0)