wrong time was reported in case of trailing inactive increments
This commit is contained in:
parent
27a6d1d682
commit
97e7f510e2
|
@ -102,7 +102,7 @@ class DADF5():
|
||||||
elif datasets is False:
|
elif datasets is False:
|
||||||
datasets = []
|
datasets = []
|
||||||
choice = [datasets] if isinstance(datasets,str) else datasets
|
choice = [datasets] if isinstance(datasets,str) else datasets
|
||||||
|
|
||||||
valid = [e for e_ in [glob.fnmatch.filter(getattr(self,what),s) for s in choice] for e in e_]
|
valid = [e for e_ in [glob.fnmatch.filter(getattr(self,what),s) for s in choice] for e in e_]
|
||||||
existing = set(self.visible[what])
|
existing = set(self.visible[what])
|
||||||
|
|
||||||
|
@ -339,8 +339,8 @@ class DADF5():
|
||||||
"""Return information on all active datasets in the file."""
|
"""Return information on all active datasets in the file."""
|
||||||
message = ''
|
message = ''
|
||||||
with h5py.File(self.fname,'r') as f:
|
with h5py.File(self.fname,'r') as f:
|
||||||
for s,i in enumerate(self.iter_visible('increments')):
|
for i in self.iter_visible('increments'):
|
||||||
message+='\n{} ({}s)\n'.format(i,self.times[s])
|
message+='\n{} ({}s)\n'.format(i,self.times[self.increments.index(i)])
|
||||||
for o,p in zip(['constituents','materialpoints'],['con_physics','mat_physics']):
|
for o,p in zip(['constituents','materialpoints'],['con_physics','mat_physics']):
|
||||||
for oo in self.iter_visible(o):
|
for oo in self.iter_visible(o):
|
||||||
message+=' {}\n'.format(oo)
|
message+=' {}\n'.format(oo)
|
||||||
|
|
Loading…
Reference in New Issue