Commit 0e61d648 authored by Mo Shahdloo's avatar Mo Shahdloo
Browse files

replace gre and epi data files

parent d4a90d0d
......@@ -329,7 +329,7 @@ def mapVBVD(filename, quiet=False, **kwargs):
currTwixObj.update({'phasestab_ref0': mytmo('phasestab_ref0')})
currTwixObj.update({'phasestab_ref1': mytmo('phasestab_ref1')})
currTwixObj.update({'refscan': mytmo('refscan')})
currTwixObj.update({'refscan_phasecor': mytmo('refscan_phasecor')})
currTwixObj.update({'refscanPC': mytmo('refscanPC')})
currTwixObj.update({'refscan_phasestab': mytmo('refscan_phasestab')})
currTwixObj.update({'refscan_phasestab_ref0': mytmo('refscan_phasestab_ref0')})
currTwixObj.update({'refscan_phasestab_ref1': mytmo('refscan_phasestab_ref1')})
......@@ -410,9 +410,9 @@ def mapVBVD(filename, quiet=False, **kwargs):
isCurrScan = mask.MDH_PHASCOR & (mask.MDH_PATREFSCAN | mask.MDH_PATREFANDIMASCAN)
isCurrScan = isCurrScan.astype(bool)
if isCurrScan.any():
currTwixObj.refscan_phasecor.readMDH(mdh, filePos, isCurrScan)
currTwixObj.refscanPC.readMDH(mdh, filePos, isCurrScan)
else:
currTwixObj.pop('refscan_phasecor', None)
currTwixObj.pop('refscanPC', None)
# phasestab MDH_PHASESTABSCAN
isCurrScan = (mask.MDH_PHASESTABSCAN & ~mask.MDH_REFPHASESTABSCAN) & (
......
......@@ -50,3 +50,5 @@ def test_flagSkipToFirstLine():
assert np.allclose(twixObj[1].refscan.dataSize, [86, 15, 55, 1, 36, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1])
twixObj[1].refscan.flagSkipToFirstLine = True
assert np.allclose(twixObj[1].refscan.dataSize, [86, 15, 24, 1, 36, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1])
test_flagIgnoreSeg_flagDoAverage()
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment