Skip to content

Commit

Permalink
Merge branch 'wip'
Browse files Browse the repository at this point in the history
  • Loading branch information
Remi-Gau committed Jul 24, 2024
2 parents f4b986f + 5aff4f4 commit c13138f
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 113 deletions.
103 changes: 0 additions & 103 deletions WIP/boutiques/bidspm.json

This file was deleted.

9 changes: 0 additions & 9 deletions WIP/boutiques/invocation.json

This file was deleted.

15 changes: 15 additions & 0 deletions WIP/create_boutiques_descriptor.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import boutiques.creator as bc

from bidspm.parsers import common_parser

newDescriptor = bc.CreateDescriptor(common_parser(), execname="bidspm")

newDescriptor.save("my-new-descriptor.json")

# args = common_parser.parse_args()
# invoc = newDescriptor.createInvocation(args)

# # Then, if you want to save them to a file...
# import json
# with open('my-inputs.json', 'w') as fhandle:
# fhandle.write(json.dumps(invoc, indent=4))
11 changes: 11 additions & 0 deletions WIP/write_model_graph.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from pathlib import Path

from bids.modeling.statsmodels import BIDSStatsModelsGraph

graph = BIDSStatsModelsGraph(
layout=Path("/home/remi/github/cpp-lln-lab/bidspm/demos/MoAE/inputs/raw"),
model="/home/remi/github/cpp-lln-lab/bidspm/demos/openneuro/models/model-narps_desc-U26C_smdl.json",
)


graph.write_graph()
2 changes: 1 addition & 1 deletion src/bidspm/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ def _add_roi_atlas(parser: ArgumentParser) -> ArgumentParser:
type=str,
nargs=1,
default="neuromorphometrics",
choices=SUPPORTED_ATLASES,
choices=list(SUPPORTED_ATLASES),
)
return parser

Expand Down

0 comments on commit c13138f

Please sign in to comment.