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 9df6a85 commit 754fc47
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
5 changes: 0 additions & 5 deletions conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

import contextlib
import importlib
import os
import textwrap

import matplotlib.pyplot
Expand All @@ -17,10 +16,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 pytest_report_header():
"""Add dependency information to pytest output."""
Expand Down
2 changes: 0 additions & 2 deletions src/metpy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@
"""Tools for reading, calculating, and plotting with weather data."""

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

# 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 754fc47

Please sign in to comment.