cpymad.util¶
Utility functions used in other parts of the pymad package.
Functions¶
|
Add quotes to a string value. |
|
Check if |
|
Convert element name from internal representation to user API. |
|
Convert element name from user API to internal representation. |
|
Format a single MAD-X command parameter. |
|
Format a single MAD-X command parameter. |
|
Create a MAD-X command from its name and parameter list. |
|
Check if the given expression is a valid MAD-X expression that is safe to pass to |
Get filename for use within 'with' block and delete file afterwards. |
Classes¶
|
Context manager for temporarily changing current working directory. |