-
Notifications
You must be signed in to change notification settings - Fork 76
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
Resolve critical warnings revealed in tests #1439
Comments
The |
For this one:
I'm thinking of just replacing all |
I couldn't find |
I see. But how come we don't usually error out? Also noticed that |
Oh that's a good point, I think it's because the exception is wrapped by a warning. I wonder at what time the
Oh yeah I'm confused by that too... Ok, I'll try to make sense of all of this today. I never really looked at the guts of the Echodata object and how it interacts with Python's garbage collection 😵 |
Oh yeah here's two that I found in
I changed this to:
|
Ok after looking at this again, I'm thinking of just removing |
A yup I found where it says exceptions are wrapped by warnings here https://docs.python.org/3/reference/datamodel.html#object.__del__: |
Look like one of the functions creating this problem is not currently being used (only called in a test): https://github.com/search?q=repo%3AOSOceanAcoustics%2Fechopype%20_get_auto_chunk&type=code I'm thinking of just removing it. Edit: Nevermind, it is still being used by |
I think I'll wait until #1447 is merged to deal with this one:
since it's associated with |
There's also this additional warning:
PR: #1462 |
https://github.com/OSOceanAcoustics/echopype/actions/runs/13098048680/job/36542811253?pr=1429#step:15:139
PR: Check if there exist any swap files before cleaning them up [all tests ci] #1451
https://github.com/OSOceanAcoustics/echopype/actions/runs/13098048680/job/36542811253?pr=1429#step:15:500
PR: Compute dask array before np array equal [all tests ci] #1452
https://github.com/OSOceanAcoustics/echopype/actions/runs/13098048680/job/36542811253?pr=1429#step:15:616
PR: Dataset.dims to Dataset.sizes [all tests ci] #1453
https://github.com/OSOceanAcoustics/echopype/actions/runs/13098048680/job/36542811253?pr=1429#step:15:956
PR: Chunks as dictionaries in
_get_auto_chunk
[all tests ci] #1454https://github.com/OSOceanAcoustics/echopype/actions/runs/13098048680/job/36542811253?pr=1429#step:15:380
https://github.com/OSOceanAcoustics/echopype/actions/runs/13098048680/job/36542811253?pr=1429#step:15:1020
https://github.com/OSOceanAcoustics/echopype/actions/runs/13098048680/job/36542811253?pr=1429#step:15:1544
The text was updated successfully, but these errors were encountered: