Skip to content
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

AstropyDepreciationWarning #70

Open
GianmarcoBroilo opened this issue Mar 24, 2022 · 1 comment
Open

AstropyDepreciationWarning #70

GianmarcoBroilo opened this issue Mar 24, 2022 · 1 comment
Assignees
Labels
documentation Improvements or additions to documentation effort_low Probably easy to solve good first issue Good for newcomers
Milestone

Comments

@GianmarcoBroilo
Copy link

GianmarcoBroilo commented Mar 24, 2022

Hello everybody! I am new to SORA, I am trying to predict occultations of Io based on a paper that suggested occultations in 2019 and 2021. If I try to predict them, using this code:
` io = Body(name='Io',
ephem=['/Users/gianmarcobroilo/Desktop/Tudat/SORA/input/jup365.bsp', '/Users/gianmarcobroilo/Desktop/Tudat/SORA/input/de441_part-1.bsp'])

print(io)

pred = prediction(body=io, time_beg='2019-09-09',time_end='2019-09-12',mag_lim=16)

print(pred)`

I get this issue only when it actually finds occultation possibilities:
Searching occultations in part 1/1 Generating Ephemeris between 2019-09-09 00:00:00.000 and 2019-09-11 23:59:00.000 ... Downloading stars ... 65 Gaia-EDR3 stars downloaded Identifying occultations ... WARNING: AstropyDeprecationWarning: ``id_type``s 'majorbody' and 'id' are deprecated and replaced with ``None``, which has the same functionality. [astroquery.jplhorizons.core] Traceback (most recent call last):

Thank you for the help!

@altairgomes
Copy link
Collaborator

Hi @GianmarcoBroilo . This is not an error, so the code continues running without any problem.

This warning is raised due to a recent update on astroquery regarding parameters when calling jplhorizons. But the current parameters work just fine. This will be a simple modification in SORA to fix it, but it will take some time until a release is made.

You can just ignore this warning.

I know the printing of many warning may bother, so I will try to provide you a script to safely ignore it.

@altairgomes altairgomes self-assigned this Mar 24, 2022
@altairgomes altairgomes added documentation Improvements or additions to documentation good first issue Good for newcomers effort_low Probably easy to solve labels Mar 24, 2022
@altairgomes altairgomes added this to the V0.3 milestone Apr 6, 2022
altairgomes added a commit to altairgomes/SORA that referenced this issue Jun 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation effort_low Probably easy to solve good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants