Closed cdeil closed 7 years ago
This is a first quick attempt to change the hips package from healpy over to the to-be Astropy healpix package (http://healpix.readthedocs.io/). The main motivation for the change is to support Windows, another motivation is to have an easier-to-install dependency (or no dependency at all if this gets merged as astropy.healpix into the core at some point).
Also licensing :)
@cdeil - ok, we should milestone cdeil/healpix#21 as 0.1. Do you have any time to work on this? Unfortunately I have to put work on healpix on hold for a few days while catching up with some other projects, so if you would have any time to work on it that would be great.
@astrofrog - I'm afraid I won't have time for https://github.com/cdeil/healpix/issues/21 this week. I'll take a quick stab at implementing https://github.com/cdeil/healpix/issues/31 (much simpler, smaller task) now, but probably won't even have time to finish that (i.e. add tests covering all edge cases, checking the maximum resolution we can support).
Locally now hipspy
works with astropy-healpix
. Let's see if we can make it work on the CI builds, especially Appveyor (Windows never worked until now, but now it should).
@astrofrog - Any idea why the Appveyor build tried to pip install scipy? https://ci.appveyor.com/project/cdeil/hips-19275o3fsp6drby/build/1.0.336
I'll change Appveyor to Python 3.6 now, but I presume the scipy install fail will still be there.
It was because of scikit-image. Now CI should pass. I'll check back tomorrow.
First successful build / test on Windows: https://ci.appveyor.com/project/cdeil/hips-jra0zyeh9itvq3c/build/1.0.338
There is this one fail on Windows: https://ci.appveyor.com/project/cdeil/hips-19275o3fsp6drby/build/1.0.340#L316
I think it's an int overflow. I'll try adding a dtype=float
to the np.sum
call - that should resolve the issue by using a float64 accumulator.
Yippie!
Nice! 🎉
This is a first quick attempt to change the
hips
package fromhealpy
over to the to-be Astropy healpix package (http://healpix.readthedocs.io/). The main motivation for the change is to support Windows, another motivation is to have an easier-to-install dependency (or no dependency at all if this gets merged asastropy.healpix
into the core at some point).This pull request is work in progress, it should only be merged after there has been a release and a conda package exists for the Astropy healpix package.
In addition, I'd like to remove
hips/utils/healpix.py
and change the callers to use the main Astropy healpix API, not the healpy-compatible API, and the dependency declaration insetup.py
as well as the install docs need to be updated.@astrofrog - For now, I see two issues when running the tests: https://gist.github.com/cdeil/a81421e94df6ed4cd732ddcf61c4174a
healpy.boundaries
which is still missing inhealpix.healpy
. This is issue https://github.com/cdeil/healpix/issues/23 . This means it's not a drop-in replacement, but we should change tohealpix_boundaries_lonlat
anyways, so not really needed.