Skip to content

Commit

Permalink
Bug fix with fstring
Browse files Browse the repository at this point in the history
  • Loading branch information
spirosmaggioros committed Oct 30, 2024
1 parent 0268b02 commit ca70d2d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions NiChart_DLMUSE/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,11 +205,10 @@ def merge_bids_output_data(out_data: str) -> None:
Move all the images on the s5_relabeled subfolder to the subfolder of their prefix
"""
dlmuse_images = []

for img in os.listdir(os.path.join(out_data, "s5_relabeled")):
relabeled_dir = os.path.join(out_data, "s5_relabeled")
for img in os.listdir(relabeled_dir):
img_prefix = get_bids_prefix(img)
os.system(f"mv {os.path.join(out_data, "s5_relabeled")}/{img} {img_prefix}/anat/")

os.system(f"mv {relabeled_dir}/{img} {img_prefix}/anat/")


def split_data(in_dir: str, N: int) -> list:
Expand Down

0 comments on commit ca70d2d

Please sign in to comment.