Skip to content

Commit

Permalink
Fix issue with netCDF4
Browse files Browse the repository at this point in the history
  • Loading branch information
eivindjahren authored and berland committed Jun 28, 2024
1 parent dcfc2c3 commit d1f8ac1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .mypy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ exclude = src/ert/shared/share
[mypy-scipy.*]
ignore_missing_imports = True

[mypy-netCDF4.*]
ignore_missing_imports = True

[mypy-cloudpickle.*]
ignore_missing_imports = True

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ dependencies=[
"lark",
"lxml",
"matplotlib",
"netCDF4!=1.7.1",
"netCDF4",
"numpy<2",
"packaging",
"pandas",
Expand Down
4 changes: 4 additions & 0 deletions src/ert/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
Ert - Ensemble Reservoir Tool - a package for reservoir modeling.
"""

# workaround for https://github.com/Unidata/netcdf4-python/issues/1343
import netCDF4 as _netcdf4 # noqa


from .config import ErtScript
from .data import MeasuredData
from .job_queue import JobStatus
Expand Down

0 comments on commit d1f8ac1

Please sign in to comment.