-
Notifications
You must be signed in to change notification settings - Fork 18
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
Sorcha cite command line function #1093
Conversation
Created a sorcha cite command line funtion with two optional arguments. An argument to print the citation to the terminal and an argument to decide the file path
Changed the function cite_sorcha() print statements to f.write and set the default to be sys.stdout. Made some formatting changes to the citation text to make it more readable when outputted in the text file. Updated the docs to include this method of getting the citation information
|
||
if args.p: # prints citation to terminal | ||
cite_sorcha() | ||
|
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.
it looks if I have with -p it will execute both printing to a file and to the terminal
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 there be an else and then the rest?
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.
Take a look at my comments. I think you might need to include an else statement somewhere in the cite.py
…dirac-institute/sorcha into making-a-sorcha-cite-in-the-CLI
fixing description typo
Fixes #1091.
Created a Sorcha cite command line function with two optional arguments. An argument to print the citation to the terminal and an argument to decide the file path
Review Checklist for Source Code Changes