syned.beamline.shape.Cylinder
- class syned.beamline.shape.Cylinder(cylinder_direction=0)[source]
Defines that a surface shape is cylindrical in one direction.
Usage: must be used with double inheritance in other classes (e.g. ParabolicCylinder). It should not be used standalone.
- Parameters:
cylinder_direction (int, optional) – TANGENTIAL = 0, SAGITTAL = 1.
Methods
__init__([cylinder_direction])duplicate()Returns a copy of the SYNED object instance.
from_hex_tring(hex_string)Returns the cylinder direction.
get_value_from_key_name(key)Gets a value using its key value.
info()Get text info of recurrent SYNED objects.
info_recurrent(fd[, prefix])Get text info of recurrent SYNED objects.
keys()Returns the keys of the supporting doctionary.
set_value_from_key_name(key, value)Sets a value using its key value.
to_dictionary()Returns a dictionary with the object fields.
to_full_dictionary()Returns a dictionary with the object fields, including other syned objects embedded or list of elements.
to_hex_tring()to_json([file_name])Writes a json file with the SYNED object data.