Skip to content

Fix tao.init design lattice file.bmad@use_line-style syntax - #21

Merged
ken-lauer merged 2 commits into
mainfrom
fix_lattice_file_use_lines
Aug 26, 2026
Merged

Fix tao.init design lattice file.bmad@use_line-style syntax#21
ken-lauer merged 2 commits into
mainfrom
fix_lattice_file_use_lines

Conversation

@ken-lauer

@ken-lauer ken-lauer commented Aug 26, 2026

Copy link
Copy Markdown
Owner

Description

I should have read the manual more closely, as usual:

  • tao.init file section tao_design_lattice can have files with suffixes that indicate the line to be used, allowing for reusage of the same lattice file in different universes
    For example:
     design_lattice(1)%file = "NESplitter_test.bmad@Pass9"
    
    This is equivalent to "load NESplitter_test.bmad and use, Pass9"
  • Separately, surprisingly, this was the first time I've parsed a file with unnecessary double parentheses (( )) and {{}} without a delimiter inside the block
    • The parser was set to bail on this scenario, but now it just passes it through. Output formatting will clean up the duplicate.

Motivation and Context

Trying latform on a tao.init file in the wild and finding more new things about Bmad

How Has This Been Tested?

Test suite

Notes

Oops, pinged a user @suffix by accident. Blame on it on the Bmad/Tao syntax...

@ken-lauer
ken-lauer force-pushed the fix_lattice_file_use_lines branch from 154c07e to b32648e Compare August 26, 2026 19:54
@ken-lauer
ken-lauer merged commit 9fc70bf into main Aug 26, 2026
17 checks passed
@ken-lauer
ken-lauer deleted the fix_lattice_file_use_lines branch August 26, 2026 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant