-
Notifications
You must be signed in to change notification settings - Fork 65
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
Several serious bug fixes #506
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@e-koch this one needs a re-review. Things kept breaking that required other things to be fixed... I'm not sure I'm done diving down this rabbit hole |
`filled_data[:]`, which necessitates loading the whole mask cube into memory
warnings for things that are creating in-memory copies
iteration gets a ton of WCS failures
testing the relevant line, we were just testing wrongly.
matplotlib < 2 only, apparently.
it's a hack. I think we just have to concede incompatilbility with mpl1.5 now
24b6d81
to
f51cc7a
Compare
the internet that claim this was a python-core issue that was (maybe?) fixed. However, it is actually impossible for this to be a python issue alone, it has to be something in py.test also, since we didn't encounter it at all for years. pytest-dev/pytest#1217
@keflavich, there's still something funky going on with masking in the 2D objects:
We'll need tests for the 2D masking, too. |
Here's the culprit for why the WCS checks are failing for the 2D masks: https://github.com/radio-astro-tools/spectral-cube/blob/master/spectral_cube/wcs_utils.py#L214. The spatial axes get reversed. But sorting them in the right order also causes problems. The data WCS gets sliced differently: https://github.com/radio-astro-tools/spectral-cube/blob/master/spectral_cube/spectral_cube.py#L1163. So we need some fix for the former or to include the latter in a more general function |
Correction: Sorting the axes in the right order does work. The tests that still fail are for slices that leave only 1 celestial axis. Now I remember why we had problems with 2D masking in the past... |
Indeed, #395 was our attempt to fix this. I think we'll need to impose a severe hack to get this to work in the meantime. Possibly, we need to just remove the CTYPE keyword entirely for unmatched celestial axis cases. I'll experiment with that. |
…ace before, which is bad
@e-koch what do you think of merging this with coverage tests sadly disabled? |
Fine with me. Hopefully, we can add them back in short order. |
apply_function_spectral_parallel