From 89076a1a74f5dd6cd1b0ba850157ad5005577ac4 Mon Sep 17 00:00:00 2001 From: Carl Helmick Date: Fri, 3 Nov 2023 15:07:10 -0300 Subject: [PATCH 1/2] Update ge_hdr_fields.py added support for rev 29,30 --- spec2nii/GE/ge_hdr_fields.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec2nii/GE/ge_hdr_fields.py b/spec2nii/GE/ge_hdr_fields.py index 7f109ed..f6ae330 100644 --- a/spec2nii/GE/ge_hdr_fields.py +++ b/spec2nii/GE/ge_hdr_fields.py @@ -2303,7 +2303,7 @@ def get_pfile_hdr_fields(version): plist.append(('pad_xx', ct.c_char * 51)) plist.append(('rhi_image_uid', ct.c_char * 32)) - elif version_major in (26, 27, 28): + elif version_major in (26, 27, 28, 29, 30): plist.append(('rhr_rh_rdbm_rev', ct.c_float)) plist.append(('rhr_rdb_hdr_off_data', ct.c_int)) plist.append(('pad_xx', ct.c_char * 84)) From d0a821d3dfaab5085af7a72fb369656fa41d30ff Mon Sep 17 00:00:00 2001 From: Carl Helmick Date: Fri, 3 Nov 2023 15:22:34 -0300 Subject: [PATCH 2/2] Update ge_read_pfile.py added rev29.1, 30.0 --- spec2nii/GE/ge_read_pfile.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/spec2nii/GE/ge_read_pfile.py b/spec2nii/GE/ge_read_pfile.py index 9223c3f..bc1db11 100644 --- a/spec2nii/GE/ge_read_pfile.py +++ b/spec2nii/GE/ge_read_pfile.py @@ -156,7 +156,7 @@ def is_ge_file(self): 157276, # v24 empirical 213684, # 26.002 219828, # 27.000 - 228020 # 28.003 + 228020 # 28.003,29.1,30.0 ): return True else: @@ -318,7 +318,9 @@ def _version(self, filelike): 25.001, 25.002, 25.003, 25.004, 26.000, 26.001, 26.002, 27.000, 27.001, - 28.000, 28.002, 28.003 + 28.000, 28.002, 28.003, + 29.1, + 30.0 ] # Note that caution is needed for float comparisons, given the