-
-
Notifications
You must be signed in to change notification settings - Fork 22
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
Added failing example for test_pix2ang #84
Conversation
This fails on Travis, as expected (I think healpy doesn't get installed on AppVeyor) |
Here's a small example to reproduce the issue:
The problem is that this pixel is placed directly at the south pole:
healpy places is (presumably correctly) above the south pole
@dstndstn - could you please try to run this example through only your C code? Is it a bug there, or is it a problem that's introduced in the Python wrapper? (e.g. because of |
@astrofrog - I now see #34 #38 . Looks like this case is just an example of a known issue: precision near the poles. |
I restarted CI after merging #94. Looks like the So @dstndstn @mreineck - looks like there are other precision issues in the C code. |
has anyone else had issues installing healpy on OSX? After doing a "pip
install healpy --user", which seemed to succeed, I get
python -c "import healpy"
/Users/dstn/Library/Python/3.6/lib/python/site-packages/healpy/pixelfunc.py:107:
UserWarning: Warning: cannot import _healpy_pixel_lib module
warnings.warn("Warning: cannot import _healpy_pixel_lib module")
Traceback (most recent call last):
File "<string>", line 1, in <module>
File
"/Users/dstn/Library/Python/3.6/lib/python/site-packages/healpy/__init__.py",
line 81, in <module>
from ._query_disc import query_disc, query_strip, query_polygon,
boundaries
ImportError:
dlopen(/Users/dstn/Library/Python/3.6/lib/python/site-packages/healpy/_
query_disc.cpython-36m-darwin.so, 2): Symbol not found:
__ZN14T_Healpix_BaseIlE8SetNsideEl23Healpix_Ordering_Scheme
Referenced from:
/Users/dstn/Library/Python/3.6/lib/python/site-packages/healpy/_
query_disc.cpython-36m-darwin.so
Expected in: flat namespace
in /Users/dstn/Library/Python/3.6/lib/python/site-packages/healpy/_
query_disc.cpython-36m-darwin.so
…On Tue, Jun 26, 2018 at 5:11 PM, Christoph Deil ***@***.***> wrote:
I restarted CI after merging #94
<#94>.
Looks like the phi is still incorrect for this test case?
https://travis-ci.org/astropy/astropy-healpix/jobs/381277304#L1064
So @dstndstn <https://github.com/dstndstn> @mreineck
<https://github.com/mreineck> - looks like there are other precision
issues in the C code.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#84 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABBD_aQzPkaOPJz9wiiBjjAycpME3Berks5uAqOLgaJpZM4UFIu_>
.
|
I often have issues with pip for healpy and have to resort to using the conda package from conda-forge. |
I looked into this failing test case. It's very similar, in that there is cancellation error near the pole. Specifically, the term being squared here is ~1e-9, so z -> 1 (cancellation error; it should be 1 - 1e-18). |
I've got a fix for this |
@dstndstn - If you're willing to use conda, there's now a quick way to get an environment with My experience is that |
Great! Please link to this issue when you make a pull request. |
Could you please check whether #101 fixes this? |
I've rebased this, so it can be merged if CI passes |
Looks like this case is working now. @dstndstn @astrofrog - Thanks! |
@lpsinger - #80 is not related to PPC, it is just a failure that happened to appear in that build. This PR adds that specific example to the hypothesis test and this fails for me locally on Mac. I don't have time to investigate why this is happening, so if anyone has any time please feel free to!