Skip to content

Commit

Permalink
Merge pull request #47 from danielfromearth/feature/issue-45
Browse files Browse the repository at this point in the history
Feature/issue 45
  • Loading branch information
danielfromearth authored Nov 8, 2023
2 parents 7d7de29 + 9d19fb6 commit 76f69af
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
- [PR #12](https://github.com/danielfromearth/stitchee/pull/12): Changed name to "stitchee"
- [PR #15](https://github.com/danielfromearth/stitchee/pull/15): Use ruff+black chain for pre-commit lint & format
- [Issue #45](https://github.com/danielfromearth/stitchee/issues/45): Rename CLI argument to clarify temporary copying behavior
### Deprecated
### Removed
### Fixed
Expand Down
9 changes: 5 additions & 4 deletions concatenator/run_stitchee.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,11 @@ def parse_args(args: list) -> tuple[list[str], str, str, bool, str | None]:
help="Dimension to concatenate along, if possible.",
)
parser.add_argument(
"--make_dir_copy",
"--no_input_file_copies",
action="store_true",
help="Make a duplicate of the input directory to avoid modification of input files. "
"This is useful for testing, but uses more disk space.",
help="By default, input files are copied into a temporary directory to avoid modification "
"of input files. This is useful for testing, but uses more disk space. "
"By specifying this argument, no copying is performed.",
)
parser.add_argument(
"--keep_tmp_files",
Expand Down Expand Up @@ -107,7 +108,7 @@ def parse_args(args: list) -> tuple[list[str], str, str, bool, str | None]:

# If requested, make a temporary directory with copies of the original input files
temporary_dir_to_remove = None
if parsed.make_dir_copy:
if not parsed.no_input_file_copies:
new_data_dir = Path(
add_label_to_path(str(output_path.parent / "temp_copy"), label=str(uuid.uuid4()))
).resolve()
Expand Down

0 comments on commit 76f69af

Please sign in to comment.