Skip to content

Commit

Permalink
Merge branch 'dev' of github.com:freesurfer/freesurfer into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Douglas Greve committed Jan 15, 2022
2 parents 4ffc203 + 0f3584e commit 1556fac
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/freesurfer/ndarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ def __init__(self, data, lut=None, swap_batch_dim=False):

# any array type might have a valid lookup table
self.lut = lut
self.filename = None

@property
def nframes(self):
Expand Down Expand Up @@ -100,6 +101,7 @@ def read(cls, filename):
if not os.path.isfile(filename):
raise ValueError('file %s does not exist' % filename)
result = bindings.vol.read(filename)
result.filename = filename
# since the volume bindings do all the IO work here, it's possible the returned
# object type does not match the calling class... if this is the case, print a warning
if not isinstance(result, cls):
Expand Down

0 comments on commit 1556fac

Please sign in to comment.