From 6be6923a7f197479a063e08d39cc2c6a677dd3a3 Mon Sep 17 00:00:00 2001 From: andubadea <37139260+andubadea@users.noreply.github.com> Date: Wed, 25 Oct 2023 17:15:29 +0200 Subject: [PATCH] Fix for short commands being sometimes skipped. The scenario file parser would consider a line is empty (or too short to be a command) if its length was shorter than 12. An example of a valid command that would be skipped in this situation is 00:00:01>FF , which has a length of 11. As the length of the timestamp needs to be at least 9 (including the > symbol), the parser should check whether the length of a line is smaller than 10. --- bluesky/stack/simstack.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bluesky/stack/simstack.py b/bluesky/stack/simstack.py index d93cbfeed1..e44b09da67 100644 --- a/bluesky/stack/simstack.py +++ b/bluesky/stack/simstack.py @@ -149,7 +149,7 @@ def readscn(fname): for line in fscen: line = line.strip() # Skip emtpy lines and comments - if len(line) < 12 or line[0] == "#": + if len(line) < 10 or line[0] == "#": continue line = prevline + line