Minor Planet Center “CometEls.txt” has a broken row with asterisks for the year
See original GitHub issueI am refering to comet_neowise_chart.py
I am using Python 3.9.1 and line 34: comet = sun + mpc.comet_orbit(row, ts, GM_SUN)
fails because the perihelion year is a string.
May I suggest adding the following fix, it just converts the perihelion_year from a string to an int.
comets = (comets.sort_values('reference')
.groupby('designation', as_index=False).last()
.set_index('designation', drop=False))
comets['perihelion_year'] = comets['perihelion_year'].astype(int)
Once this is done everything is Ok.
By the way there are no issues using Python 3.9 so I think you can update this dot point Supports Python 2.6–2.7 and Python 3.3–3.5.
in Skyfield to Supports Python 2.6–2.7 and Python 3.3–3.9.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
MPO Canopus and PhotoRed Reference Guide
The file contains elements in the same format as the CometEls.txt file that can be downloaded from the MPCORB page on the Minor...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thank you for following up on that, on behalf of the rest of us! I’m glad to hear it’s not a permanent change to the file format.
I just received notification that this is fixed. I also verified it.