wrong time was reported in case of trailing inactive increments

This commit is contained in:
Martin Diehl 2020-01-02 16:27:17 +01:00
parent 27a6d1d682
commit 97e7f510e2
1 changed files with 3 additions and 3 deletions

View File

@ -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)