File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change 29
29
"""
30
30
31
31
import typing as ty
32
+ import warnings
32
33
33
34
from nipype .interfaces import freesurfer as fs
34
35
from nipype .interfaces import io as nio
@@ -1321,8 +1322,9 @@ def init_anat_ribbon_wf(name='anat_ribbon_wf'):
1321
1322
1322
1323
def init_resample_surfaces_wf (
1323
1324
surfaces : list [str ],
1324
- space : str ,
1325
- density : str ,
1325
+ density : str | None = None ,
1326
+ grayord_density : str | None = None ,
1327
+ space : str = 'fsLR' ,
1326
1328
name : str = 'resample_surfaces_wf' ,
1327
1329
):
1328
1330
"""
@@ -1367,6 +1369,17 @@ def init_resample_surfaces_wf(
1367
1369
import templateflow .api as tf
1368
1370
from niworkflows .engine .workflows import LiterateWorkflow as Workflow
1369
1371
1372
+ if density is None :
1373
+ if grayord_density is None :
1374
+ raise ValueError ('No density specified. Set density argument.' )
1375
+ density = '32k' if grayord_density == '91k' else '59k'
1376
+ warnings .warn (
1377
+ 'Deprecated grayord_density passed. Replace with\n \t '
1378
+ "density='32k' if grayord_density == '91k' else '59k'" ,
1379
+ DeprecationWarning ,
1380
+ stacklevel = 2 ,
1381
+ )
1382
+
1370
1383
workflow = Workflow (name = name )
1371
1384
1372
1385
inputnode = pe .Node (
You can’t perform that action at this time.
0 commit comments