Skip to content

Commit

Permalink
Don't allow timesteps longer than 328 seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
jzuhone committed Jun 4, 2019
1 parent b44a550 commit 0a2e917
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions xija/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ def __init__(self, name=None, start=None, stop=None, dt=None,
if dt is None:
dt = 328.0

if dt > 328.0:
raise RuntimeError("dt = %g s greater than upper limit of 328 s!" % dt)

self.name = name
self.comp = OrderedDict()
self.dt = dt
Expand Down

0 comments on commit 0a2e917

Please sign in to comment.