-
-
Notifications
You must be signed in to change notification settings - Fork 399
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
Astroquery.mpc proper_motion issues numpy.core._exceptions._UFuncNoLoopError: ufunc 'multiply' #3019
Comments
I think I found an issue with the parsing of the MPC ephemeris results. This is the result for comet 113P produced today and where my error happens today.
As can be seen the SkyMotion columns sometimes have the precision of 3 decimals arcsec/h.
And here is what I get:
As can be seen the dRA cos(Dec) and dDec are parsed inccorectlly where the precision fo dRA cos(Dec) is 3 decimals. The last digit is already parsed to the dDec column making it a string instead of a float column and the conversion to arcsec/min later fails. The issue comes from setting the col_start and col_ends for Sky Motion in the _parse_result()
To fix this we need to parse one character more so the end of dRA cos(Dec) column is shifted one character to the right. But also the dDec column can have 3 decimals precision so the end of the column must also be shifted to the right now for 2 characters to column 91. But changing the col_ends has the effect on all remaining columns, so we need to adjust the next part and all the starts and ands must be moved now one character to the left. Corrected code
This way I get the results parsed as expected and conversion to arcsec/min works:
|
cc @mkelley |
…recision Modified test and data set for 3 digit sky motion precision
Im trying to generate ephemerides with MPC.get_ephemeris()
The procedure seems to fail for some comets
Here is my script:
The issue seems to get from the arguments
If I remove this from the query I get the results returned.
If I try to generate the ephemeris from the website I get the result for comet 120P.
How could I resolve this issue?
The text was updated successfully, but these errors were encountered: