Skip to content

Commit

Permalink
Merge pull request #35 from yhuang43/master
Browse files Browse the repository at this point in the history
complex64 support
  • Loading branch information
jnolan14 authored Jul 29, 2024
2 parents c0f7824 + 281e451 commit ded5f1d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions surfa/io/framed.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ def dtype_from_id(self, id):
3: '>f4', # float
4: '>i2', # short
6: '>f4', # tensor
7: '>c8', # complex64
10: '>u2', # ushort
}
dtype = mgh_types.get(id)
Expand Down Expand Up @@ -398,6 +399,7 @@ def save(self, arr, filename, intent=FramedArrayIntents.mri):
np.floating: 3,
np.int16: 4,
np.uint16: 10,
np.complex64: 7,
}
dtype_id = next((i for dt, i in type_map.items() if np.issubdtype(arr.dtype, dt)), None)
if dtype_id is None:
Expand Down

0 comments on commit ded5f1d

Please sign in to comment.