From 86fb0a79420a41a8b85789983b8ac268d478a31d Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Sun, 15 Sep 2019 20:04:52 -0700 Subject: [PATCH] time info needed for filtering of increments --- python/damask/dadf5.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/python/damask/dadf5.py b/python/damask/dadf5.py index 65f63f0ed..091f1fe23 100644 --- a/python/damask/dadf5.py +++ b/python/damask/dadf5.py @@ -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'])]