Skip to content

Commit ded5f1d

Browse files
authored
Merge pull request #35 from yhuang43/master
complex64 support
2 parents c0f7824 + 281e451 commit ded5f1d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

surfa/io/framed.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@ def dtype_from_id(self, id):
230230
3: '>f4', # float
231231
4: '>i2', # short
232232
6: '>f4', # tensor
233+
7: '>c8', # complex64
233234
10: '>u2', # ushort
234235
}
235236
dtype = mgh_types.get(id)
@@ -398,6 +399,7 @@ def save(self, arr, filename, intent=FramedArrayIntents.mri):
398399
np.floating: 3,
399400
np.int16: 4,
400401
np.uint16: 10,
402+
np.complex64: 7,
401403
}
402404
dtype_id = next((i for dt, i in type_map.items() if np.issubdtype(arr.dtype, dt)), None)
403405
if dtype_id is None:

0 commit comments

Comments
 (0)