Skip to content

Commit

Permalink
add timesteps to datareader (#284)
Browse files Browse the repository at this point in the history
  • Loading branch information
skuschel committed Jul 31, 2024
2 parents 3fbd14e + ce65eea commit 9a3bec8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions postpic/datareader/datareader.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])

0 comments on commit 9a3bec8

Please sign in to comment.