Skip to content

Commit a934582

Browse files
bpinsardyarikoptic
andauthored
Apply suggestions from code review
Co-authored-by: Yaroslav Halchenko <[email protected]>
1 parent 2aa4427 commit a934582

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

heudiconv/convert.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -527,13 +527,12 @@ def update_multiorient_name(
527527
metadata: dict[str, Any],
528528
filename: str,
529529
) -> str:
530-
if "acq-" in filename:
530+
if "_acq-" in filename:
531531
lgr.warning(
532-
"Not embedding multi-orientation information as prefix already uses acq- parameter."
532+
"Not embedding multi-orientation information as `%r` already uses acq- parameter.", filename
533533
)
534534
return filename
535535
iop = metadata.get("ImageOrientationPatientDICOM")
536-
# iop = [round(x) for x in iop]
537536
assert isinstance(iop, list)
538537
cross_prod = [
539538
iop[1] * iop[5] - iop[2] * iop[4],

0 commit comments

Comments
 (0)