We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd5f251 commit 9b40a9dCopy full SHA for 9b40a9d
sdcflows/utils/epimanip.py
@@ -189,9 +189,8 @@ def get_trt(in_meta, in_file=None):
189
190
return trt
191
elif in_file is None:
192
- msg = "Unable to find TotalReadoutTime in metadata and in_file \
193
- not defined."
194
- raise AssertionError(msg)
+ msg = "`in_file` must be defined if TotalReadoutTime does not appear in `in_meta`."
+ raise ValueError(msg)
195
196
# npe = N voxels PE direction
197
pe_index = "ijk".index(in_meta["PhaseEncodingDirection"][0])
0 commit comments