File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -235,7 +235,7 @@ def normalize_surfs(
235
235
for RAS in "RAS" :
236
236
pointset .meta .pop (f"VolGeom{ XYZC } _{ RAS } " , None )
237
237
238
- if newpath is not None :
238
+ if newpath is None :
239
239
newpath = os .getcwd ()
240
240
out_file = os .path .join (newpath , fname )
241
241
img .to_filename (out_file )
@@ -259,7 +259,7 @@ def fix_gifti_metadata(in_file: str, newpath: Optional[str] = None) -> str:
259
259
if pointset .meta .get ("GeometricType" ) == "Sphere" :
260
260
pointset .meta ["GeometricType" ] = "Spherical"
261
261
262
- if newpath is not None :
262
+ if newpath is None :
263
263
newpath = os .getcwd ()
264
264
out_file = os .path .join (newpath , os .path .basename (in_file ))
265
265
img .to_filename (out_file )
@@ -280,7 +280,7 @@ def make_ribbon(
280
280
for white , pial in zip (white_distvols , pial_distvols )
281
281
]
282
282
283
- if newpath is not None :
283
+ if newpath is None :
284
284
newpath = os .getcwd ()
285
285
out_file = os .path .join (newpath , "ribbon.nii.gz" )
286
286
You can’t perform that action at this time.
0 commit comments