Commit 4daded49 authored by payno's avatar payno

[Experiment][fix] nslices should use data_flatten and not data

parent 1d9b1167
Pipeline #6693 passed with stage
in 2 minutes and 25 seconds
......@@ -316,11 +316,11 @@ class Experiment(object):
@property
def nslices(self):
if self.data is None:
if self.data_flatten is None:
return 0
else:
assert self.data.ndim is 3
return self.data.shape[0]
assert self.data_flatten.ndim is 3
return self.data_flatten.shape[0]
def set_dims(self, dims):
assert isinstance(dims, dict)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment