Skip to content

Commit 904ffc3

Browse files
author
evi.hendrikx
committed
make parse_curve also compatible with NumPy 2.0
1 parent 457edc4 commit 904ffc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cortex/freesurfer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ def parse_curv(filename):
463463
"""
464464
with open(filename, 'rb') as fp:
465465
fp.seek(15)
466-
return np.fromstring(fp.read(), dtype='>f4').byteswap().newbyteorder()
466+
return np.fromstring(fp.read(), dtype='>f4').byteswap().view(np.dtype('>f4').newbyteorder('='))
467467

468468

469469
def parse_patch(filename):

0 commit comments

Comments
 (0)