Repository navigation
Conversation
This branch has not been deployed
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Fixes #1012
PortStudyandEigenmodeStudybuilt the aggregate path withbase.with_name(base.name + "_study").with_suffix(".h5"). For a base name with a dot,with_suffixreplaced everything after that dot, sopatch_v1.2wrote its S matrix topatch_v1.h5instead ofpatch_v1.2_study.h5. Sibling studies (patch_v1.2,patch_v1.3) then shared one aggregate file, a plainpatch_v1.h5output got overwritten, and a-i Nrestart reused columns from the other experiment's file.Changes:
_study.h5to the base name (base.with_name(base.name + "_study.h5")). Names without a dot give the same path as before (ports_study.h5,hash_ports_study.h5, ...).test_port_study_aggregate_keeps_dotted_output_name(two port studiespatch_v1.2andpatch_v1.3in one folder) andtest_eigenmode_study_aggregate_keeps_dotted_output_name(guide_v1.2). They check the result'soutput_file, that each aggregate is complete, and that nopatch_v1.h5/guide_v1.h5is written.Testing:
PosixPath('.../patch_v1.h5') == '.../patch_v1.2_study.h5',PosixPath('.../guide_v1.h5') == '.../guide_v1.2_study.h5') and pass with the fix.pytest tests/ports/test_port_study.py tests/test_eigenmode_study.py tests/test_studies.py tests/test_documentation_workflows.py::test_documented_hash_and_api_models_agree_and_plot: 41 passed, 10 skipped (no CUDA/OpenCL here).port.in/port.csv:python -m gprMax patch_v1.2.innow writespatch_v1.2_study.h5,python -m gprMax patch_v1.3.in -i 2writes its ownpatch_v1.3_study.h5and no longer touches thepatch_v1.2result, and-o results/run.outgivesresults/run.out_study.h5next torun.out1.h5andrun.out2.h5.