-
Notifications
You must be signed in to change notification settings - Fork 36
Feature/80col parser (closes sub-issues #504 & #505) #505
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
base: develop
Are you sure you want to change the base?
Feature/80col parser (closes sub-issues #504 & #505) #505
Conversation
…feature/80col_parser
…i/tudatpy into feature/80col_parser
Awesome! Have you checked whether the unit tests still pass with these modications? |
Answer: yes :D |
Could you also add a test where the 80-column reading is checked? |
…feature/80col_parser
…storical dates and allow for utc-tai conversion
Hi @DominicDirkx! It took me some time, but I think now everything works fine. In the end, this PR turned out to be much bigger than it initially was. New additions:
I would ask you (and maybe @valeriof7 , since I have touched some time conversion source code) to review the PR. The only thing I am not very happy about is the |
Thanks for the thorough update of the mpc code and time conversions! This resolves a lot of small ongoing issues :) I won't be able to look at this before going on holiday, but I recal @larshinueber also working on the time conversions recently. And, since I'm no Python programmer, could one of you (@valeriof7, @larshinueber, @alfonsoSR) do a check of the Python code? I see one time conversion unit test is failing: 2025-10-16T04:35:18.2512140Z unknown location(0): �[4;31;49mfatal error: in "test_date_time/testTimePointConversions": std::runtime_error: Failed to convert date to time_t using mktime for date: 1969-12-31 23:59:59.000000000000000�[0;39;49m which is an edge case of a time comversion very close to 1-1-1970 And, now that the C++ code is made more robust for time scale conversions in teh more distant past, also important to extend the unit test for this |
I'll have a look at the code this weekend :) |
Oh, I know why the test is failing. I'll fix it :) |
This PR solves (sub)issue #504 by adding an 80 columns format parser, based on the
object_type
(can becomet
,minor_planet
,natural_satellite
).It returns an
astropy
table ready to be validated through thefrom_astropy()
method, and ready to be converted into an observation collection via theto_tudat()
method.It also solves (sub)issue #503 by making the
ephemeris()
function of the Horizons Wrapper more robust.