time info needed for filtering of increments

This commit is contained in:
Martin Diehl 2019-09-15 20:04:52 -07:00
parent b3b710c848
commit 86fb0a7942
1 changed files with 3 additions and 2 deletions

View File

@ -38,8 +38,9 @@ class DADF5():
self.size = f['geometry'].attrs['size']
r=re.compile('inc[0-9]+')
self.increments = [u for u in f.keys() if r.match(u)]
self.increments = [i for i in f.keys() if r.match(i)]
self.times = [round(f[i].attrs['time/s'],12) for i in self.increments]
self.Nmaterialpoints, self.Nconstituents = np.shape(f['mapping/cellResults/constituent'])
self.materialpoints = [m.decode() for m in np.unique(f['mapping/cellResults/materialpoint']['Name'])]
self.constituents = [c.decode() for c in np.unique(f['mapping/cellResults/constituent'] ['Name'])]