Skip to content

Commit c13138f

Browse files
committed
Merge branch 'wip'
2 parents f4b986f + 5aff4f4 commit c13138f

File tree

5 files changed

+27
-113
lines changed

5 files changed

+27
-113
lines changed

WIP/boutiques/bidspm.json

Lines changed: 0 additions & 103 deletions
This file was deleted.

WIP/boutiques/invocation.json

Lines changed: 0 additions & 9 deletions
This file was deleted.

WIP/create_boutiques_descriptor.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import boutiques.creator as bc
2+
3+
from bidspm.parsers import common_parser
4+
5+
newDescriptor = bc.CreateDescriptor(common_parser(), execname="bidspm")
6+
7+
newDescriptor.save("my-new-descriptor.json")
8+
9+
# args = common_parser.parse_args()
10+
# invoc = newDescriptor.createInvocation(args)
11+
12+
# # Then, if you want to save them to a file...
13+
# import json
14+
# with open('my-inputs.json', 'w') as fhandle:
15+
# fhandle.write(json.dumps(invoc, indent=4))

WIP/write_model_graph.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
from pathlib import Path
2+
3+
from bids.modeling.statsmodels import BIDSStatsModelsGraph
4+
5+
graph = BIDSStatsModelsGraph(
6+
layout=Path("/home/remi/github/cpp-lln-lab/bidspm/demos/MoAE/inputs/raw"),
7+
model="/home/remi/github/cpp-lln-lab/bidspm/demos/openneuro/models/model-narps_desc-U26C_smdl.json",
8+
)
9+
10+
11+
graph.write_graph()

src/bidspm/parsers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ def _add_roi_atlas(parser: ArgumentParser) -> ArgumentParser:
472472
type=str,
473473
nargs=1,
474474
default="neuromorphometrics",
475-
choices=SUPPORTED_ATLASES,
475+
choices=list(SUPPORTED_ATLASES),
476476
)
477477
return parser
478478

0 commit comments

Comments
 (0)