File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -46,17 +46,21 @@ def _run_interface(self, runtime):
46
46
# wb_command -metric-math "abs(var * -1) > 0"
47
47
roi = np .abs (darray .data ) > 0
48
48
49
+ # Divergence: Set datatype to uint8, since the values are boolean
50
+ # wb_command sets datatype to float32
49
51
darray = nb .gifti .GiftiDataArray (
50
52
roi ,
51
53
intent = darray .intent ,
52
- datatype = darray . datatype ,
54
+ datatype = 'uint8' ,
53
55
encoding = darray .encoding ,
54
56
endian = darray .endian ,
55
57
coordsys = darray .coordsys ,
56
58
ordering = darray .ind_ord ,
57
59
meta = meta ,
58
60
)
59
61
62
+ img .darrays [0 ] = darray
63
+
60
64
out_filename = os .path .join (runtime .cwd , f"{ subject } .{ hemi } .roi.native.shape.gii" )
61
65
img .to_filename (out_filename )
62
66
self ._results ["roi_file" ] = out_filename
You can’t perform that action at this time.
0 commit comments