Replies: 6 comments 7 replies
-
I think a similar problem exists for when trying to add a pattern for a BOLD_mask. For example I tried to use junifer/junifer/datagrabber/aomic/piop1.py Line 197 in 9316bca Maybe something like: patterns:
BOLD:
pattern: "..."
space: "..."
mask_item: "..."
T1w:
pattern: "..."
space: "..."
mask_item: "..." could fix that. |
Beta Was this translation helpful? Give feedback.
-
Indeed I thought this issue will come soon. We have mandatory ( We first need to allow for optional parameters. Now the question is how do we deal with Important, we should raise an error message that gives the right information. |
Beta Was this translation helpful? Give feedback.
-
With the merging of #299 , we would have a "space zoo" :P |
Beta Was this translation helpful? Give feedback.
-
If y'all don't have further points and agree with the collective proposed solution, give this comment a thumbs up for acknowledgement and I'll transfer this to an issue and then to a PR with the fix. But if you have further points, feel free to continue the discussion and don't acknowledge until you run out of points :P |
Beta Was this translation helpful? Give feedback.
-
Exactly! We'll see about EEG in the future.
I have no comments on implementation though. But it will be great to have something validate that for each "data type" you are passing the correct mandatory parameters, as well as checking the "optional". E.g. what if someone passes "format" to "BOLD"? Shall we allow this? It won't be used. |
Beta Was this translation helpful? Give feedback.
-
Okay looks like we can move forward, converting it to issue, feel free to add points there. |
Beta Was this translation helpful? Give feedback.
-
With the introduction of template space definitions in #252 and #268, the use of
PatternDataladDataGrabber
via YAML is broken as of9316bca
due to space awareness. Thespace
key is added inget_item
method of the DataGrabber and not defined in the constructor. Thespace
key is important for every other component downstream and not having that breaks the pipeline. The solution I propose is not backwards compatible as it re-defines the structure of thepatterns
parameter, but in my opinion the cleanest and leanest way:Old:
Python:
YAML:
New:
Python:
YAML:
I'm happy to discuss alternatives and adapt my solution.
Beta Was this translation helpful? Give feedback.
All reactions