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

change_dump_date.py #19

Open
wants to merge 96 commits into
base: main
Choose a base branch
from

Conversation

leoberhelman
Copy link
Contributor

@leoberhelman leoberhelman commented Jan 27, 2025

This PR addresses Issue #16

@atteggiani atteggiani changed the title Lindsey/requirements for change dump date.py change_dump_date.py Jan 27, 2025
leoberhelman and others added 13 commits February 24, 2025 12:25
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
Removing leftover print statements from testing
Copy link
Collaborator

@atteggiani atteggiani left a 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.

Comment on lines +224 to +230
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
Copy link
Collaborator

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

leoberhelman and others added 15 commits February 28, 2025 09:04
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]>
@leoberhelman leoberhelman requested a review from atteggiani March 3, 2025 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants