Skip to content

Commit

Permalink
[FIX] Properly deleting real and imaginary files for FMAP in adni-to-…
Browse files Browse the repository at this point in the history
…bids converter (#1188)
  • Loading branch information
AliceJoubert authored May 22, 2024
1 parent 60f168b commit b77a8af
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion clinica/iotools/converters/adni_to_bids/adni_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1528,7 +1528,15 @@ def create_file(
os.rename(trigger_time, no_trigger_time)

# Removing images with unsupported suffixes if generated by dcm2niix
for suffix in ("ADC", "real", "imaginary"):
for suffix in (
"ADC",
"real",
"imaginary",
"e1_real",
"e1_imaginary",
"e2_real",
"e2_imaginary",
):
file_with_bad_suffix = output_path / f"{output_filename}_{suffix}"
if any(
[
Expand Down

0 comments on commit b77a8af

Please sign in to comment.