multi-type rows extraction with sdds toolkit
Posted: 23 Jan 2018, 06:23
Dear all,
Apologies if this question might sound trivial for some of you. I have the following situation:
There is a twiss file with several columns, "s", "betax", "betay", "ElementType" etc
I first extract the lines of the file that correspon to quadrupole values, and it works. I do (in an elegant file)
However, if I want to extract the line KQUAD lines **and** the KSEXT ones in the final output, I try
and it doesn't work. The notation I tried is inspired from the SDDStoolkit manual, p.136 . I don't really see what I am doing wrong.
PS: i am extracting the KQUAD and KSEXT values to have more point for the KQUAD optimization.
Apologies if this question might sound trivial for some of you. I have the following situation:
There is a twiss file with several columns, "s", "betax", "betay", "ElementType" etc
I first extract the lines of the file that correspon to quadrupole values, and it works. I do (in an elegant file)
Code: Select all
&subprocess
command = "sddsprocess run0_test.twi jan18.betaxTerms -match=col,ElementType=KQUAD "
&end
Code: Select all
&subprocess
command = "sddsprocess run0_test.twi jan18.betaxTerms -match=col,ElementType=KQUAD,ElementType= KSEXT, | "
&end
PS: i am extracting the KQUAD and KSEXT values to have more point for the KQUAD optimization.