Skip to content

Commit b7a7006

Browse files
oestebanmgxd
andauthored
Update niworkflows/utils/images.py
Co-Authored-By: Mathias Goncalves <[email protected]>
1 parent 34b40c4 commit b7a7006

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

niworkflows/utils/images.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def dseg_label(in_seg, label, newpath=None):
118118

119119
if newpath is None:
120120
newpath = Path()
121-
newpath = Path()
121+
newpath = Path(newpath)
122122

123123
nii = nb.load(in_seg)
124124
data = np.asanyarray(nii.dataobj, dtype='int16') == label

0 commit comments

Comments
 (0)