Open pfbuxton opened 1 week ago
Hi Peter,
Thanks very much for flagging these, the first two weren't on my radar and I agree swapping the try/except order for get_cmap seems sensible. Since these are currently only depracation warnings I don't think it's urgent enough to do a special release, but will include them in the next release (or do another release when Scipy 2.0.0 appears, whichever happens first!)
While running CI/CD testing (for my own packages) I see these warnings. Normally best to fix these things before they break when SciPy/Matplotlib are updated.
I have tested and can confirm that on SciPy 1.14.1, this replacement works:
I have tested and can confirm that on SciPy 1.14.1, this replacement works:
The warning message originates from here, calcam/gui/image_analysis.py#L26. Where there is a try/except for importing:
what is happening is you are trying to do the import using the old API and then falling back to the new API if there is a failure. But we are in the transition period where the first try succeeds with a warning message. If you reverse the try/except you will test the new API first.
Hope this is of help.