Skip to content

Commit 345ec68

Browse files
committed
fix: ensure datatype of generated CIFTI2 file
Make sure the CIFTI2 file in the failing test is created with a ``float32`` data type. Resolves: #177.
1 parent 61a4685 commit 345ec68

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nitransforms/tests/test_base.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,8 @@ def _to_hdf5(klass, x5_root):
113113
gii = nb.gifti.GiftiImage(
114114
darrays=[
115115
nb.gifti.GiftiDataArray(
116-
data=xfm.reference.ndcoords, intent=nb.nifti1.intent_codes["pointset"]
116+
data=xfm.reference.ndcoords.astype("float32"),
117+
intent=nb.nifti1.intent_codes["pointset"],
117118
)
118119
]
119120
)

0 commit comments

Comments
 (0)