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

Multistate #53

Merged
merged 13 commits into from
Dec 19, 2024
Merged

Multistate #53

merged 13 commits into from
Dec 19, 2024

Conversation

scemama
Copy link
Member

@scemama scemama commented Dec 18, 2024

I did the changes requested in #40 . I suggest that we merge this branch and close #40

@scemama scemama requested a review from q-posev December 18, 2024 10:02
def run(trexio_filename, filename, filetype, back_end, spin=None, motype=None, state_suffix=None):

# Do the cleanup if the file already exists
file_cleanup(trexio_filename, back_end)
Copy link
Member

@q-posev q-posev Dec 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we now have remove_trexio_file function which works nicely with the --overwrite CLI option. Do we really need to do file_cleanup here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!
I changed the command line option from "-w True" to "-w". The presence of -w sets overwrite to True, the absence to False. It is more common for boolean command-line values.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I know how to do that with argparse (which is what I use for CLI nowadays) but docopt is confusing sometimes. Thanks!

@q-posev q-posev merged commit 082d40b into master Dec 19, 2024
1 check passed
@q-posev q-posev deleted the multistate branch December 19, 2024 08:30
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.

3 participants