From cffc9162a6dd24096ed5189065fae8ef93352a41 Mon Sep 17 00:00:00 2001 From: Mark Mikkelsen Date: Tue, 12 Mar 2024 11:36:58 -0400 Subject: [PATCH] Cosmetic edits --- spec2nii/GE/ge_pfile.py | 4 +++- spec2nii/GE/ge_read_pfile.py | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/spec2nii/GE/ge_pfile.py b/spec2nii/GE/ge_pfile.py index 578f390..121ecfc 100644 --- a/spec2nii/GE/ge_pfile.py +++ b/spec2nii/GE/ge_pfile.py @@ -90,7 +90,9 @@ def _process_svs_pfile(pfile): :return: List of file name suffixes """ psd = pfile.hdr.rhi_psdname.decode('utf-8').lower() - if psd.endswith('gaba'): # MM: some 'gaba' psd strings contain full path names, so truncate to the end of the path + + # MM: Some 'gaba' psd strings contain full path names, so truncate to the end of the path + if psd.endswith('gaba'): psd = 'gaba' numecho = pfile.hdr.rhi_numecho diff --git a/spec2nii/GE/ge_read_pfile.py b/spec2nii/GE/ge_read_pfile.py index fd8b89b..e119872 100644 --- a/spec2nii/GE/ge_read_pfile.py +++ b/spec2nii/GE/ge_read_pfile.py @@ -177,6 +177,8 @@ def get_mapper(self): return None psd = self.hdr.rhi_psdname.decode('utf-8').lower() + + # MM: Some 'gaba' psd strings contain full path names, so truncate to the end of the path if psd.endswith('gaba'): psd = 'gaba'