switched "master" property from incs to increments
This commit is contained in:
parent
b5f9d524d7
commit
fa58d69cbb
|
@ -114,7 +114,8 @@ class Result:
|
||||||
self.add_curl = self.add_divergence = self.add_gradient = None
|
self.add_curl = self.add_divergence = self.add_gradient = None
|
||||||
|
|
||||||
r = re.compile(rf'{prefix_inc}([0-9]+)')
|
r = re.compile(rf'{prefix_inc}([0-9]+)')
|
||||||
self.incs = sorted([int(m.group(1)) for i in f.keys() for m in (r.match(i),) if m])
|
self.increments = [f'{prefix_inc}{i}'
|
||||||
|
for i in sorted([int(m.group(1)) for i in f.keys() for m in (r.match(i),) if m])]
|
||||||
self.times = [round(f[i].attrs['t/s'],12) for i in self.increments]
|
self.times = [round(f[i].attrs['t/s'],12) for i in self.increments]
|
||||||
if len(self.incs) == 0:
|
if len(self.incs) == 0:
|
||||||
raise ValueError('incomplete DADF5 file')
|
raise ValueError('incomplete DADF5 file')
|
||||||
|
@ -539,8 +540,8 @@ class Result:
|
||||||
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def increments(self):
|
def incs(self):
|
||||||
return [f'{prefix_inc}{i}' for i in self.incs]
|
return [int(i.split(prefix_inc)[-1]) for i in self.increments]
|
||||||
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|
Loading…
Reference in New Issue