-
Notifications
You must be signed in to change notification settings - Fork 21
User-defined Output Folder #238
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
Merged
genevievestarke
merged 27 commits into
NatLabRockies:develop
from
elenya-grant:output_dir
May 4, 2026
Merged
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
3bc800f
made it so that user can input an output directory
elenya-grant 13cf85c
added user inputs for logging files and updated so log file can be wr…
elenya-grant ef91fd8
Merge remote-tracking branch 'upstream/develop' into output_dir
elenya-grant 9ecc7ec
minor cleanups
elenya-grant ff30490
fixed bug
elenya-grant fb90477
redid ruff formatting on hercules_model_test.py
elenya-grant c164c18
added test and updated logged in component_base
elenya-grant ec11a65
ran ruff on hercules_model_test.py
elenya-grant 714152a
Merge remote-tracking branch 'upstream/develop' into output_dir
elenya-grant 440d581
doc updates
elenya-grant 24de7a6
added tests for example 7 and updated example 7
elenya-grant 3493cb2
added warning message to prepare_outputs_directory script
elenya-grant 21d4570
added global directories to hercules __init__
elenya-grant 40751c9
fixed logger if specified an output dir in the log path
elenya-grant ca51b20
updated logic in setup_logging
elenya-grant ea8680c
updated example 7 doc page a little bit
elenya-grant 4f66a77
Make h_dict docs format parallel
genevievestarke 6854d45
updated inline comments to example 7 tests
elenya-grant 0b69c30
Merge remote-tracking branch 'origin/output_dir' into output_dir
elenya-grant 34655ea
added function to create unique output foldername if overwrite_output…
elenya-grant 6df5ab7
removed use_outputs_dir and updated outputs_dir to logging_dir and up…
elenya-grant a14bf56
removed ability to specify compnent specific logging folders
elenya-grant 04015ab
cleaned up _setup_logging methods
elenya-grant ca689df
updated h_dict documentation
elenya-grant a398832
Merge remote-tracking branch 'upstream/develop' into output_dir
elenya-grant fa11eec
Merge branch 'develop' into output_dir
genevievestarke 6c85ba0
update hercules example yaml
genevievestarke File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Ok, playing around with this a little more, what happens when overwrite_outputs = False? Example 07 doesn't seem to do anything different when I change this to false.
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.
okay - it's a little weird here too.
If
overwrite_outputs=False, then it won't delete all the files inoutput_dir. If you don't changeoutput_fileto a different name - it'll be overwritten anyway. So - if you keepoverwrite_outputs=Falseand change theoutput_filename between runs - then you should get two output .h5 files in theoutput_dir. If you hadoverwrite_outputs=True, then you'd get one output .h5 file in that folder named whatever theoutput_filejust was (because all earlier files in that folder would've been deleted)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.
What do you think of appending on to the h5 file an incremental number if one already exists? And the same for the log files?