Skip to content

Commit

Permalink
strip inline comments before processing line
Browse files Browse the repository at this point in the history
  • Loading branch information
sfo committed Jul 25, 2024
1 parent 849d76f commit 2c8ba46
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bluesky/stack/simstack.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ def readscn(fname):

# Try reading timestamp and command
try:
line = line.split("#")[0].strip()

icmdline = line.index(">")
tstamp = line[:icmdline]
ttxt = tstamp.strip().split(":")
Expand Down

0 comments on commit 2c8ba46

Please sign in to comment.