From ce65eea635afb1fb4664369576051b29bdf9875a Mon Sep 17 00:00:00 2001 From: Sarah Jane Grimm Date: Fri, 12 Jul 2024 17:03:59 +0200 Subject: [PATCH] simreader returns timesteps of the simulation --- postpic/datareader/datareader.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/postpic/datareader/datareader.py b/postpic/datareader/datareader.py index 68c8b6c..1cd6212 100644 --- a/postpic/datareader/datareader.py +++ b/postpic/datareader/datareader.py @@ -370,3 +370,6 @@ def __repr__(self): def times(self): return np.array([s.time() for s in self]) + + def timesteps(self): + return np.array([s.timestep() for s in self])