-
Notifications
You must be signed in to change notification settings - Fork 27
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
RecursionError: maximum recursion depth exceeded #165
Comments
@mackenziemeier86 can you report the version of pyglider you are using, the version of xarray, and the version of dask? You can usually get these using It has also been a long time since we did a release, so it's possible that pyglider no longer works properly with the latest versions of its dependencies. We should do a new release "soon", but in the meantime, I'd suggest doing an editable install as https://pyglider.readthedocs.io/en/latest/Install.html#editable-installation and see if that fixes the problem. If that fails, please post links to a a subset of the breaking data. Thanks! |
pyglider 0.0.4 pyhd8ed1ab_0 conda-forge And this is the data I am using: https://github.com/c-proof/pyglider-example-data/tree/main/example-slocum Thank you! |
Ah, I see. We definitely should re-release pyglider.
# turn *.sdb and *.tbd into timeseries netcdf files
outname = slocum.binary_to_timeseries(
binarydir, cacdir, l1tsdir, deploymentyaml, search='*.[s|t]bd',
profile_filt_time=20, profile_min_time=20)
outname = ncprocess.make_gridfiles(outname, griddir, deploymentyaml) (and remove the raw_to_nc and nc_to_timeseries). It seems that the old method no longer works with modern xarray, and we very much discourage the old method. |
Thanks Jody! How do I get binary_to_timeseries loaded? |
Ah, OK, definitely install as in https://pyglider.readthedocs.io/en/latest/Install.html#editable-installation in your environment. I will work on a proper release in the next couple days |
OK, new release 0.0.5. I think conda install will work soon, but |
Thanks so much! The only line I am stuck on now is: ncprocess.extract_timeseries_profiles(outname, profiledir, deploymentyaml) is there a new alternative to this too? |
No that should work. What error is that giving? |
Working now sorry! Just an order of operations mistake I think. Thanks so much for your help! |
I have also been able to reproduce the recursion depth error on a fresh install of pyglider, using the example SeaExplorer data. I believe the problem comes from the interaction of numpy and xarray pydata/xarray#8848 For me it was tiggered by I'm investigating this and will put in a PR when ready |
Weird if it's a xarray issue. Maybe there was a bad version out there |
Using the example code, I am having trouble with the slocum.raw_to_timeseries. It doesn’t seem to be running correctly and therefore isn’t defining “outname”. I get returned the attached error message-
I am using the example code to try to run this (from example-slocum), so I think it is something with how I am running the code and not my files. Is anyone familiar with this and can provide any advice? I'm not very familiar with python so unsure what this error means or why I am having this issue.
The text was updated successfully, but these errors were encountered: