Open ken-lauer opened 2 weeks ago
In the Code there was the search for an '=' sign since the code expects at least one comment. I have changed it for all elements that a empty string of zero length (which is generated after the trimming) is ignored and the parsing is continue. It should work now. Can you check if it is ok for you. Then I can close the issue.
Thanks for addressing this so quickly, @svenreiche! I ran my test case with your fix, and it appears to work well on my end.
It would be great to have a new release one day soon, if you can find the time.
Describe the bug
Using v4.6.6
A lattice element such as a corrector without parameters specified:
Results in the following repeated message during parsing:
My understanding of reading the code is that this defaults to
l=0, cx=0, cy=0
. Scientists on our team sometimes use this as a placeholder in the lattice until they are ready to assign some values.To Reproduce
A simple tweak of example 1 to exhibit this:
Expected behavior
I don't think this should be a warning - this should just indicate "use all of the default values for the lattice element".
Additional context
In lume-genesis, we only write parameter values that differ from the defaults to avoid explicitly listing all parameters for every element.