Skip to content

Commit

Permalink
add doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Shotgunosine authored Feb 28, 2024
1 parent 272a958 commit abd916d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions contarg/normgrid.py
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,7 @@ def calc_stimgrid(subject, src_surf_dir, surf_info_dir,
raise ValueError("Must pass a layout if fmriprep is True")
if anat_dir is None:
raise ValueError("Must pass an anat_dir if ")
surfaces = load_surfaces(subject=subject, layout=layout,overwrite=overwrite, anat_dir=anat_dir)
surfaces = load_surfaces(subject=subject, layout=layout, overwrite=overwrite, anat_dir=anat_dir)
else:
surfaces = load_liston_surfs(subject, src_surf_dir)

Expand Down Expand Up @@ -1232,7 +1232,6 @@ def run_clusters(subject, concat_nii, clust_outdir, src_surf_dir,
layout=None,
anat_dir=None,
overwrite=False):
#load_surfaces(subject=subject, layout=layout, anat_dir=anat_dir, overwrite=overwrite)
"""
subject : str
subject id
Expand All @@ -1254,6 +1253,10 @@ def run_clusters(subject, concat_nii, clust_outdir, src_surf_dir,
name of the roi where stimulation will be delivered
out_prefix : str
string preprended to output files
layout : bids.layout.layout.BIDSLayout | str
The layout object or a path to a saved bids layout
anat_dir : Pathlib path | str
Upper level directory under which new surfaces will be saved if needed. Files will be saved to anat_dir / f'sub-{subject}/anat'
overwrite : bool
Should files be overwritten
"""
Expand Down Expand Up @@ -1288,7 +1291,6 @@ def run_clusters(subject, concat_nii, clust_outdir, src_surf_dir,
surfaces = load_surfaces(subject=subject, layout=layout, anat_dir=anat_dir, overwrite=overwrite)
elif surf_source == 'liston':
surfaces = load_liston_surfs(subject, src_surf_dir)

else:
raise NotImplementedError

Expand Down

0 comments on commit abd916d

Please sign in to comment.