Skip to content

Commit

Permalink
FIX: Drop unused std_xfms and get_outputnode_spec()
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Sep 29, 2023
1 parent 53cb30c commit 71aa027
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 43 deletions.
18 changes: 0 additions & 18 deletions smriprep/data/io_spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,24 +70,6 @@
"mode": "image"
}
},
"std_xfms": {
"anat2std_xfm": {
"datatype": "anat",
"extension": "h5",
"from": "T1w",
"to": [],
"suffix": "xfm",
"mode": "image"
},
"std2anat_xfm": {
"datatype": "anat",
"extension": "h5",
"from": [],
"to": "T1w",
"suffix": "xfm",
"mode": "image"
}
},
"surfaces": {
"white": {
"datatype": "anat",
Expand Down
25 changes: 0 additions & 25 deletions smriprep/utils/bids.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,31 +28,6 @@
from bids.layout import BIDSLayout


def get_outputnode_spec():
"""
Generate outputnode's fields from I/O spec file.
Examples
--------
>>> get_outputnode_spec() # doctest: +NORMALIZE_WHITESPACE
['t1w_preproc', 't1w_mask', 't1w_dseg', 't1w_tpms',
'std_preproc', 'std_mask', 'std_dseg', 'std_tpms',
'anat2std_xfm', 'std2anat_xfm',
't1w2fsnative_xfm', 'fsnative2t1w_xfm',
'white', 'pial', 'midthickness', 'sphere',
'thickness', 'sulc', 'curv',
'sphere_reg', 'sphere_reg_fsLR', 'sphere_reg_msm',
'anat_ribbon']
"""
spec = loads(Path(pkgrf("smriprep", "data/io_spec.json")).read_text())["queries"]
fields = ["_".join((m, s)) for m in ("t1w", "std") for s in spec["baseline"].keys()]
fields += [s for s in spec["std_xfms"].keys()]
fields += [s for s in spec["surfaces"].keys()]
fields += [s for s in spec["masks"].keys()]
return fields


def collect_derivatives(derivatives_dir, subject_id, std_spaces, spec=None, patterns=None):
"""Gather existing derivatives and compose a cache."""
if spec is None or patterns is None:
Expand Down

0 comments on commit 71aa027

Please sign in to comment.