We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 225892a + 29eb894 commit d23a833Copy full SHA for d23a833
nibabel/streamlines/trk.py
@@ -593,7 +593,10 @@ def _read_header(fileobj):
593
if header_rec['version'] == 1:
594
# There is no 4x4 matrix for voxel to RAS transformation.
595
header_rec[Field.VOXEL_TO_RASMM] = np.zeros((4, 4))
596
- elif header_rec['version'] == 2:
+ elif header_rec['version'] == 3:
597
+ warnings.warn('Parsing a TRK v3 file as v2. Some features may not '
598
+ 'be handled correctly.', HeaderWarning)
599
+ elif header_rec['version'] in (2, 3):
600
pass # Nothing more to do.
601
else:
602
raise HeaderError('NiBabel only supports versions 1 and 2 of '
0 commit comments