From be515e7a3ec1c6c674fc7ba138bdaef70030a7f6 Mon Sep 17 00:00:00 2001
From: Rob Moss <robm.dev@gmail.com>
Date: Wed, 27 Oct 2021 11:41:40 +1100
Subject: [PATCH] Fix an error when logging a warning message

---
 src/pypfilt/state.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/pypfilt/state.py b/src/pypfilt/state.py
index 47265a4..b22f0bf 100644
--- a/src/pypfilt/state.py
+++ b/src/pypfilt/state.py
@@ -171,7 +171,7 @@ def earlier_states(hist, ix, steps):
     # Don't go too far back (negative indices jump into the future).
     if steps > ix:
         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)
 
     # Start with the parent indices for the current particles, which allow us
-- 
GitLab