Skip to content

Commit

Permalink
Make adcircpy optional
Browse files Browse the repository at this point in the history
  • Loading branch information
SorooshMani-NOAA committed Aug 6, 2024
1 parent c4c2229 commit a8e5570
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ensembleperturbation/client/perturb_tracks.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def main():
else:
for forcing in arguments['forcings']:
if isinstance(forcing, BestTrackForcingJSON):
storm = forcing.adcircpy_forcing.nhc_code
storm = forcing.pyschism_forcing.nhc_code
break
else:
raise ValueError('no best track forcing specified')
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ enable = true

[tool.poetry.dependencies]
python = '^3.9'
adcircpy = '>=1.2.3'
adcircpy = { version = '>=1.3', optional = true } # effectively disable until new version released
appdirs = '*'
beautifulsoup4 = '*'
cartopy = { version = '*', optional = true }
Expand Down Expand Up @@ -62,6 +62,7 @@ plotting = ['cartopy', 'cmocean', 'matplotlib']
testing = ['pytest', 'pytest-cov', 'pytest-socket', 'pytest-xdist', 'wget']
development = ['isort', 'oitnb']
documentation = ['dunamai', 'm2r2', 'sphinx', 'sphinx-rtd-theme', 'sphinxcontrib-programoutput', 'sphinxcontrib-bibtex', 'cartopy', 'cmocean', 'matplotlib']
adcirc = ['adcircpy']

[tool.poetry.scripts]
make_storm_ensemble = 'ensembleperturbation.client.make_storm_ensemble:main'
Expand Down

0 comments on commit a8e5570

Please sign in to comment.