Skip to content

Commit

Permalink
Move the subfolder removing operation to remove_subfolders function
Browse files Browse the repository at this point in the history
  • Loading branch information
spirosmaggioros committed Oct 28, 2024
1 parent 65952cb commit 316651a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions NiChart_DLMUSE/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ def main() -> None:

merge_output_data(out_dir)
remove_subfolders(in_data)
remove_subfolders(out_dir)


if __name__ == "__main__":
Expand Down
2 changes: 0 additions & 2 deletions NiChart_DLMUSE/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,5 +224,3 @@ def merge_output_data(in_dir: str) -> None:
f"mv {in_dir}/{dir}/temp_working_dir/s6_combined/* {in_dir}/results/s6_combined/"
)
os.system(f"mv {in_dir}/{dir}/*.nii.gz {in_dir}/results/")

os.system(f"rm -r {in_dir}/split_*")

0 comments on commit 316651a

Please sign in to comment.