syned.beamline.shape.Circle
- class syned.beamline.shape.Circle(radius=5e-05, x_center=0.0, y_center=0.0)[source]
Constructor.
- Parameters:
radius (float) – The radius of the circle.
x_center (float) – The x coordinate of the center of the circle.
y_center (float) – The y coordinate of the center of the circle.
Methods
__init__([radius, x_center, y_center])duplicate()Returns a copy of the SYNED object instance.
from_hex_tring(hex_string)Returns the circle parameters.
Returns the coordinates of the circle.
Returns the radius of the circle.
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_boundaries([radius, x_center, y_center])Sets the circle parameters.
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.