Skip to content

Commit

Permalink
reversed default behavior, so that input files are copied *unless* cl…
Browse files Browse the repository at this point in the history
…i arg is specified.
  • Loading branch information
danielfromearth committed Nov 8, 2023
1 parent 37286d5 commit 9d19fb6
Showing 1 changed file with 5 additions and 4 deletions.
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(
"--copy_input_files_to_temp_dir",
"--no_input_file_copies",
action="store_true",
help="Make a duplicate of the input files in a temporary 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 9d19fb6

Please sign in to comment.