-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
Support arrays for nside #71
Conversation
@lpsinger - Thanks! I think these crashes are unrelated; they look like the Cython bug we had earlier this year: @bsipocz or @astrofrog - What do we have to do to resolve that? Update astropy-helpers? |
Side note: it would eliminate the need for a lot of the manual array broadcasting and datatype checks if the cython functions were implemented as ufuncs. |
@lpsinger - Can you please make that suggestion about ufuncs in a new issue? Probably @astrofrog knows what you mean already, but for me or others, could you please include a link to a Cython example what exactly you propose to change to? |
Done. See #72. |
The unrelated Cython crashes mentioned above have been fixed via #74 . |
Issues on Windows: https://ci.appveyor.com/project/Astropy/astropy-healpix/build/1.0.65/job/fmf107i99skhv740 @lpsinger - Can you have a look? |
I think it's the usual issue that Windows defaults to 32-bit ints |
On Windows, ints are 32-bit.
Yuck. The only way around this that I see is to cast I think that if we rewrote these functions as ufuncs (see #72) we would get casting like that automatically. @astrofrog, is this approach OK with you? |
This is just for tests that call directly into the Cython functions, and there you just have to pass the correct types, no? Users won't see these errors because they go through the Python wrapper functions which do the type casting to @lpsinger - Maybe do this change and merge this in? The discussion whether to use ufuncs instead and re-write the whole package will probably take longer (#72), and having the feature & tests here merged is more helpful than not, no? One more thought: I see many |
I would like to play around a bit longer with #72 first. I think that it may help with the int type too. |
@lpsinger - We'll have the astropy-healpix coding sprint next Monday / Tuesday, and support for nside arrays is very high on the list of things we need. Do you have time to try and sort out the int here so that this can go in? Or do you really think the change to C / ufuncs should be done first before adding this? |
Next week I will.
I think that we should close pull request and just switch to ufuncs because this will kill two birds with one stone. |
Fixes #66.