Repository navigation
Keep dotted names when building DT1/HD output paths - #948
Merged
Merged
Conversation
_output_pair used Path.with_suffix, so any dot in the destination name was treated as an extension and cut off. A series named antenna_1.5GHz exported as antenna_1.DT1 for every component, and -o survey.v2 became survey.DT1. Only a .dt1 or .hd suffix is now stripped before the extensions are appended.
This was referenced Nov 21, 2026
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.
Title: Keep dotted names when building DT1/HD output paths
Fixes #947
_output_pairinoutputfiles_dt1usedPath.with_suffix(".DT1")/with_suffix(".HD"), so any dot in the destination name was taken as an extension and dropped. A series calledantenna_1.5GHzwas exported toantenna_1.DT1for every component (so a second component collided with the first), and-o survey.v2becamesurvey.DT1.Change:
.dt1or.hd(any case) is stripped, as before; the.DT1and.HDextensions are now appended to the remaining name instead of replacing its last suffix.Testing:
test_main_keeps_dotted_base_names_and_component(runs the CLImainon anantenna_1.5GHzseries) andtest_export_dt1_only_replaces_dt1_or_hd_suffix(survey.v2,survey.v2.dt1,survey.v2.HD) intests/toolboxes/test_outputfiles_dt1.py. All four new cases fail on master and pass with this change.pytest tests/toolboxes/test_outputfiles_dt1.py: 8 passed.