-
Notifications
You must be signed in to change notification settings - Fork 11
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
ImageStreamIOWrap in Python fails on C-order arrays in confusing way #22
Comments
Is this still current? I can't reproduce, but then it might depend on the shape and dtype of your Preferred way, albeit not indispensable, is to use pyMilk for accessing ImageStreamIO from python (one more layer, but more convenience functions). |
Sorry for the latency, this can be easily by removing the ImageStreamIO/python_module/ImageStreamIOWrap.cpp Lines 204 to 205 in f8302b0
|
Noted thanks. I'll justed have to do a synced update in pyMilk to force C ordering instead of F, and open without the transpose symcode. I'm wondering if the enforced f_style isn't necessary relative to the fact that ImagestreamIO loves to straight up load fits (F ordered) and a lot of milk is based on that implicit assumption. Just concerned. Possibly for no reason :) |
I'm almost sure that astropy writes FITS files with the correct order, Eric saves a tone of FITS with python and he can use DS9 to read them without issue... But a real verification may be useful, indeed. |
Astropy sure. The idea is to establish the default symcode such that numpy -> pymilk -> milk's fits2shm is also equivalent to what we'd expect, without causing 12 copies along the way :) |
We just installed the dev branch on MagAO-X for testing and found what might be a regression.
It appears that this has something to do with C-contiguous vs. Fortran-contiguous arrays:
@kvangorkom reported and I helped debug. Not sure where to go from here, but we can use fortran order explicitly as a workaround in the meantime.
cc @jaredmales
The text was updated successfully, but these errors were encountered: