Dear Didier,
I have found the following undesired behaviour:
If TAB spaces are used to separate the parameters of an element, VARIABLES placed as parameters will not work.
Using normal space characters everything works as expected.
Could you fix that? It is nice to structure the file with tab spaces for visibility.
Best regards,
Hendrik
BUG: Variables not working, if TAB is used as spacer
-
- Apprentice
- Posts: 23
- Joined: Mon 30 Nov 2020 09:46
- Country:
Germany (de)
Re: BUG: Variables not working, if TAB is used as spacer
Dear Hendrik,
Are you sure that TAB_space is the problem here
I think the rigth syntax should be "Line: Multipole 1 100 100 0 26"
And yes the manual is not clear, it's 0 for B and 1 for E.
Regards,
Didier
Are you sure that TAB_space is the problem here
I think the rigth syntax should be "Line: Multipole 1 100 100 0 26"
And yes the manual is not clear, it's 0 for B and 1 for E.
Regards,
Didier
-
- Apprentice
- Posts: 23
- Joined: Mon 30 Nov 2020 09:46
- Country:
Germany (de)
Re: BUG: Variables not working, if TAB is used as spacer
Yes, I can replicate with a drift:
Best regards,
Hendrik
Best regards,
Hendrik
Re: BUG: Variables not working, if TAB is used as spacer
Sorry I didn't understand what you were trying to show me with this new error
Regards,
Didier
Regards,
Didier
-
- Apprentice
- Posts: 23
- Joined: Mon 30 Nov 2020 09:46
- Country:
Germany (de)
Re: BUG: Variables not working, if TAB is used as spacer
The Syntax is correct, but the TAB spaces generate this error. My Multipole definition was correct. The issue is with tabstop characters and variables.
so
"VARIABLE driftlength 10"
"DRIFT [SPACEBAR] driftlength [SPACEBAR] 8.75" --> works without error
"VARIABLE driftlength 10"
"DRIFT [TAB] driftlength [TAB] 8.75" --> throws the error
Best regards,
Hendrik
so
"VARIABLE driftlength 10"
"DRIFT [SPACEBAR] driftlength [SPACEBAR] 8.75" --> works without error
"VARIABLE driftlength 10"
"DRIFT [TAB] driftlength [TAB] 8.75" --> throws the error
Best regards,
Hendrik
Re: BUG: Variables not working, if TAB is used as spacer
Sorry for my misunderstanding, I didn't realise you were using the 'VARIABLE' command.
Okay, that's fixed.
Regards,
Didier
Okay, that's fixed.
Regards,
Didier
-
- Apprentice
- Posts: 23
- Joined: Mon 30 Nov 2020 09:46
- Country:
Germany (de)
Re: BUG: Variables not working, if TAB is used as spacer
It is working now, thank you
Best regards,
Hendrik
Best regards,
Hendrik