24.0.0rc fails with 'MNIInfant not found in SpatialReferences
if cifti-output
flag not used
#375
Labels
bug
Something isn't working
EDIT: Edited this message on Aug 6th to provide more background info.
Background
#360 by @mgxd Added this function:
nibabies/nibabies/workflows/base.py
Lines 953 to 964 in 38fb3fd
Used here:
nibabies/nibabies/workflows/base.py
Lines 517 to 525 in 38fb3fd
The Problem
If
config.execution.output_spaces
isNone
(which I believe is the default value), then Nibabies will addMNIInfant:cohort-1:res-native
at this LOC:nibabies/nibabies/workflows/base.py
Lines 829 to 832 in 38fb3fd
Then
get_MNIInfant_key
will throw an error on that exact value that Nibabies just added on Line 830.... I.e.. for release candidate 24.0.0rc, a lot of my files that ran without issue on 23.1.0 now always hit the error:KeyError: 'MNIInfant not found in SpatialReferences: Spatial References: MNIInfant:cohort-1:res-native'
Full Stack Trace
This error isn't very helpful because 1) MNIInfant is in Spatial References, and 2) there's no further info on what should be changed.
I checked locally, and on 23.1.0, the value of my Spatial Reference is the same:
MNIInfant:cohort-1:res-native
. The only difference on 24.0.0rc seems to be that this new function,get_MNIInfant_key
forces an error on this value.If I modify the function to accept this value, then things seems to run okay again. But I'd like to understand what
get_MNIInfant_key
really expects before I submit a PR for what I presume to be a bug.The text was updated successfully, but these errors were encountered: