Skip to content

Commit a36d91d

Browse files
authored
fix: remove buggy, uncovered lines
Sometimes, one would set `EchoTime = 0.0` for the first phase map, and the deltaTE will exactly be the EchoTime of the other phase. In such a situation, the error was raised. In addition, the check was unnecessary because if one of the echoes or both are `None`, then an error is raised in line 36.
1 parent 9b5c167 commit a36d91d

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

sdcflows/utils/phasemanip.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,6 @@ def subtract_phases(in_phases, in_meta, newpath=None):
3333
from nipype.utils.filemanip import fname_presuffix
3434

3535
echo_times = tuple([m.pop("EchoTime", None) for m in in_meta])
36-
if not all(echo_times):
37-
raise ValueError(
38-
"One or more missing EchoTime metadata parameter "
39-
"associated to one or more phase map(s)."
40-
)
41-
4236
if echo_times[0] > echo_times[1]:
4337
in_phases = (in_phases[1], in_phases[0])
4438
in_meta = (in_meta[1], in_meta[0])

0 commit comments

Comments
 (0)