-
Notifications
You must be signed in to change notification settings - Fork 0
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
change_dump_date.py #19
base: main
Are you sure you want to change the base?
Conversation
Converted to mule. Still unsure if changing the correct times
Minor changes Co-authored-by: Davide Marchegiani <[email protected]>
Co-authored-by: Davide Marchegiani <[email protected]>
Added the date type function
added the date option yyyymmdd. still need to add the non integer catch
Added the exclusivity to the parser
made the parse arg and individual parameter edits
Co-authored-by: Davide Marchegiani <[email protected]>
Change to the date_value function
Unit tests update
Change dump date unit tests
Removing leftover print statements from testing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @leoberhelman for working on this and for adding tests.
I added some more comments to the main script.
As usual, I haven't reviewed too much of the tests because the main function has some outstanding comments.
I will review tests when those comments are addressed.
for field in ff.fields: | ||
if new_year is not None: | ||
field.lbyr = new_year | ||
if new_month is not None: | ||
field.lbmon = new_month | ||
if new_day is not None: | ||
field.lbdat = new_day |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we also change the "Data time for instantaneous field" (PP Header 7-9: field.lbyrd
, field.lbmond
, field.lbdatd
)?
@MartinDix
Recommit
Co-authored-by: Davide Marchegiani <[email protected]>
Co-authored-by: Davide Marchegiani <[email protected]>
Co-authored-by: Davide Marchegiani <[email protected]>
Make the changes to separate the exclusivity test
delete the extra parse date function resume the original format of parsing the --date in the parse_args()
Co-authored-by: Davide Marchegiani <[email protected]>
Co-authored-by: Davide Marchegiani <[email protected]>
Co-authored-by: Davide Marchegiani <[email protected]>
Co-authored-by: Davide Marchegiani <[email protected]>
This PR addresses Issue #16