Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
William Clarke
pymapVBVD
Commits
0e61d648
Commit
0e61d648
authored
Sep 23, 2020
by
Mo Shahdloo
Browse files
replace gre and epi data files
parent
d4a90d0d
Changes
2
Hide whitespace changes
Inline
Side-by-side
core/mapVBVD.py
View file @
0e61d648
...
...
@@ -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
({
'refscan
PC
'
:
mytmo
(
'refscan
PC
'
)})
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
.
refscan
PC
.
readMDH
(
mdh
,
filePos
,
isCurrScan
)
else
:
currTwixObj
.
pop
(
'refscan
_phasecor
'
,
None
)
currTwixObj
.
pop
(
'refscan
PC
'
,
None
)
# phasestab MDH_PHASESTABSCAN
isCurrScan
=
(
mask
.
MDH_PHASESTABSCAN
&
~
mask
.
MDH_REFPHASESTABSCAN
)
&
(
...
...
tests/test_flags.py
View file @
0e61d648
...
...
@@ -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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment