Skip to content

Commit

Permalink
Set numpy print options to legacy=1.21
Browse files Browse the repository at this point in the history
Without this setting, the value of legacy=1.25 was being inherited
from Landlab, which isn't allowed in the installed version of numpy<2
(currently 1.26.4).
  • Loading branch information
mdpiper committed Oct 10, 2024
1 parent 9e8e331 commit ad59ace
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pymt/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
import numpy as np
from gimli.units import UnitSystem

from ._version import __version__
from .model_collection import ModelCollection

np.set_printoptions(legacy="1.21")

MODELS = ModelCollection()

__all__ = ["__version__", "UnitSystem", "MODELS"]

0 comments on commit ad59ace

Please sign in to comment.