Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when trying to create wind forcing from best track #152

Open
SorooshMani-NOAA opened this issue Apr 28, 2022 · 0 comments
Open

Error when trying to create wind forcing from best track #152

SorooshMani-NOAA opened this issue Apr 28, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@SorooshMani-NOAA
Copy link
Collaborator

Calling BestTrackFrocing.from_fort22(...) without passing nws argument results in error. Ideally it should default to 20 like __init__ method.

...
    forcing = BestTrackForcing.from_fort22(
  File "adcircpy/forcing/winds/best_track.py", line 67, in from_fort22
    WindForcing.__init__(instance, nws=nws, interval_seconds=interval_seconds)
  File "adcircpy/forcing/winds/base.py", line 10, in __init__
    self.NWS = nws
  File "adcircpy/forcing/winds/best_track.py", line 113, in NWS
    assert NWS in [8, 19, 20]
AssertionError
@SorooshMani-NOAA SorooshMani-NOAA added the bug Something isn't working label Apr 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant