UnboundLocalError when trying model.open_datatree(group=("z","u","v")) on HAMTIDE11 #524
Unanswered
andrew-longmore-tessella
asked this question in
Q&A
Replies: 2 comments 9 replies
-
|
Right now group wants a tuple (or list) of strings. So use But that's a good find! I can make it so it tries splitting the string up into an iterable (or at the very least providing a helpful error). |
Beta Was this translation helpful? Give feedback.
2 replies
-
|
Thanks for finding this! Should (hopefully) be fixed in version |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm just getting started on pyTMD and am trying to get current data (u,v) on the HAMTIDE11 database.
I can use
and plot tidal displacements, a bit like https://pytmd.readthedocs.io/en/latest/notebooks/Plot-Tide-Forecasts.html, so I know most things are working.
However, if I try
then that line gives me an error
UnboundLocalError: cannot access local variable 'mapping_amp' where it is not associated with a value.Any suggestions on how to proceed? My python version is 3.14, and my libraries are h5py 3.15.1 and pytmd 3.0.1.
Googling suggests it's to do with the mapping_amp variable name being referenced incorrectly.
Beta Was this translation helpful? Give feedback.
All reactions