Skip to content

Commit

Permalink
MAINT: remove spin_resonance hotfix for type mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
ken-lauer committed Aug 20, 2024
1 parent 89f396a commit 9e43973
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions pytao/util/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1280,17 +1280,14 @@ def parse_spin_resonance(lines, cmd=""):
-------
dict
"""
# Two fixes:
# 1. INFO/notes may appear in output
# 2. n0 type is marked incorrectly
# https://github.com/bmad-sim/bmad-ecosystem/issues/1077
lines = [
line.replace("n0;REAL;F", "n0;REAL_ARR;F")
for line in lines
if "[INFO]" not in line and "note: setting" not in line.lower()
]

return parse_tao_python_data(lines)
# Filter lines as INFO/notes may appear in output
return parse_tao_python_data(
[
line
for line in lines
if "[INFO]" not in line and "note: setting" not in line.lower()
]
)


def parse_super_universe(lines, cmd=""):
Expand Down

0 comments on commit 9e43973

Please sign in to comment.