-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
command seems to ignored using input #52
Comments
Hi, it could be that something is wrong with splitting of commands with the |
Hi, I checked the reason this fails is that the input is sent unsplit to MAD-X
|
Is there a way to write mad input to avoid triggering this bug for the time being? As far as I know, to get statements I would do in this order:
|
On the user side, yes:
|
Do you have a timescale for this fix? I am getting few people reporting being hit by this behaviours as more users are using cpymad. A very quick fix (although not efficient) could be to reimplement input to always save the string to a temporary file, use "call" and delete the file (the old input could be temporarily hidden with an underscore). This to avoid people experiencing undefined behaviours that is very difficult to trace back. I can prepare a PR if you think it is an option. |
Hey, I had already started the implementation but then pursued another project, so I can have a working version by tomorrow I believe. However, I cannot guarantee that it will always do 100% the same as MAD-X does. |
Hi, while adapting the
gives: and
gives: I have created a pull request with corresponding bugfixes for MAD-X, see MethodicalAcceleratorDesign/MAD-X#819. You mentioned that you got further reports from other users. Do these fall into the same category or do they need to be fixed seperately? Best, Thomas |
Thanks a lot!!! I will check with my colleagues! |
I checked and indeed they were related to a misunderstanding. Thanks again for fixing upstream! |
Great. I will leave this open for now as I'm considering to include an adapted |
In the example below, it looks like the "beam;" command is not sent to mad, although it appears in the command log. Splitting the input string in two parts does not show the problem.
The text was updated successfully, but these errors were encountered: