The documentation indicates that segs (used in preproc_utils.py) can be list-like (the default value is None), but there are multiple if segs: statements that throw and error if segs is a list. This PR replaces if segs: with if np.any(segs): throughout preproc_utils.py
The documentation indicates that
segs
(used inpreproc_utils.py
) can be list-like (the default value is None), but there are multipleif segs:
statements that throw and error ifsegs
is a list. This PR replacesif segs:
withif np.any(segs):
throughoutpreproc_utils.py