-
Notifications
You must be signed in to change notification settings - Fork 32
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
Fix problems reading .mat files #341
Conversation
save/load of a mat file from python does not give errors |
sorry I have to take it back. I tried an other file. a file saved in python has the RF cavities with DriftPass, and gives this error: AttributeError: Error in element 136: PassMethod DriftPass is not compatible with Class RFCavity. I think the problem rises when saving a lattice with radiation off (that turns also the cavity off) |
@simoneliuzzo : this is a different problem. The "coherence" test when reading a file is too strict. We'll change that: I agree that DriftPass may be use for any class. For the moment, you can skip the test by adding "check=False" to the arguments of the load function ( |
@simoneliuzzo: side remark: you should NEVER use lengths like 1.0E-12.
|
The coherence test is relaxed so that 'DriftPass' is allowed for any |
* Fix problems with Particle objects in .mat files * Fix problems with Particle objects in .mat, .m and .repr files * Allow DriftPass on any class when reading a .mat file
it works for me! |
This fixes #340.