You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
High-level problem description Phys.from_sbdb works fine for asteroids but seem to not like querying comet designations
What did you do?
from sbpy.data import Phys
phys = Phys.from_sbdb("147P")
What did you expect?
I expected the code to return physical data for the comet.
What did really happen?
The code gave an error:
FieldError: Field M1 is not an instance of <class 'astropy.units.quantity.Quantity'>
It seems that astroquery SBDB is not providing units for all the fields that sbpy expects units for. The following code does the query successfully and the OrderedDict does not have units for M1 etc
from astroquery.jplsbdb import SBDB
sbdb = SBDB.query("147P", phys=True)
print(SBDB.schematic(sbdb))
Provide information on your environment:
macOS Monterey 12.4
sbpy version: 0.3.1
astropy version: 5.0.1
numpy version: 1.21.2
The text was updated successfully, but these errors were encountered:
Thanks, and I can confirm this bug, and have a fix. If you need a workaround in the short term, then get the data from astroquery as you do above, and apply the unit manually.
High-level problem description
Phys.from_sbdb
works fine for asteroids but seem to not like querying comet designationsWhat did you do?
What did you expect?
I expected the code to return physical data for the comet.
What did really happen?
The code gave an error:
It seems that astroquery SBDB is not providing units for all the fields that sbpy expects units for. The following code does the query successfully and the OrderedDict does not have units for
M1
etcProvide information on your environment:
macOS Monterey 12.4
sbpy version: 0.3.1
astropy version: 5.0.1
numpy version: 1.21.2
The text was updated successfully, but these errors were encountered: