Skip to content
Snippets Groups Projects
Commit be515e7a authored by Rob Moss's avatar Rob Moss
Browse files

Fix an error when logging a warning message

parent c3de5767
Branches
Tags
No related merge requests found
Pipeline #17531 passed
...@@ -171,7 +171,7 @@ def earlier_states(hist, ix, steps): ...@@ -171,7 +171,7 @@ def earlier_states(hist, ix, steps):
# Don't go too far back (negative indices jump into the future). # Don't go too far back (negative indices jump into the future).
if steps > ix: if steps > ix:
msg_fmt = 'Cannot look back {} time-steps, will look back {}' msg_fmt = 'Cannot look back {} time-steps, will look back {}'
logger.warn(msg_ftm.format(steps, ix)) logger.warn(msg_fmt.format(steps, ix))
steps = min(steps, ix) steps = min(steps, ix)
# Start with the parent indices for the current particles, which allow us # Start with the parent indices for the current particles, which allow us
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment