From 7a32e8d5529fcd301f8b5a095c7ae2ba5e1ea19b Mon Sep 17 00:00:00 2001 From: Ali Khan Date: Mon, 2 May 2022 15:19:37 -0400 Subject: [PATCH] fix for UNI_Images was not grabbing (looking for DIS2D/DIS3D/ND in wrong index of image_type) - updated to it doesn't matter where the tag is.. --- heuristics/cfmm_base.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/heuristics/cfmm_base.py b/heuristics/cfmm_base.py index 4f6248b..4e9c0a6 100644 --- a/heuristics/cfmm_base.py +++ b/heuristics/cfmm_base.py @@ -339,11 +339,11 @@ def infotodict(seqinfo): elif ('DIS3D' in (s.image_type[4].strip())): info[DIS3D_t1w].append({'item': s.series_id}) if ('UNI_Images' in (s.series_description).strip()): - if ('DIS2D' in (s.image_type[3].strip())): + if ('DIS2D' in s.image_type): info[DIS2D_uni_mp2rage].append({'item': s.series_id}) - if ('DIS3D' in (s.image_type[3].strip())): + if ('DIS3D' in s.image_type): info[DIS3D_uni_mp2rage].append({'item': s.series_id}) - if ('ND' in (s.image_type[3].strip())): + if ('ND' in s.image_type): info[uni_mp2rage].append({'item': s.series_id}) if ('_INV2' in (s.series_description).strip()): if ('DIS2D' in (s.image_type[3].strip())):