syned.beamline.shape.TwoEllipses

class syned.beamline.shape.TwoEllipses(a1_axis_min=-1e-05, a1_axis_max=1e-05, b1_axis_min=-5e-06, b1_axis_max=5e-06, a2_axis_min=-2e-05, a2_axis_max=2e-05, b2_axis_min=-8e-06, b2_axis_max=8e-06)[source]

Constructor.

Parameters:
  • a1_axis_min (float, optional) – The coordinate (signed) of the minimum (left) along the major axis of ellipse 1.

  • a1_axis_max (float, optional) – The coordinate (signed) of the maximum (right) along the major axis of ellipse 1.

  • b1_axis_min (float, optional) – TThe coordinate (signed) of the minimum (left) along the minor axis of ellipse 1.

  • b1_axis_max (float, optional) – The coordinate (signed) of the maximum (right) along the minor axis of ellipse 1.

  • a2_axis_min (float, optional) – The coordinate (signed) of the minimum (left) along the major axis of ellipse 2.

  • a2_axis_max (float, optional) – The coordinate (signed) of the maximum (right) along the major axis of ellipse 2.

  • b2_axis_min (float, optional) – TThe coordinate (signed) of the minimum (left) along the minor axis of ellipse 2.

  • b2_axis_max (float, optional) – The coordinate (signed) of the maximum (right) along the minor axis of ellipse 2.

__init__(a1_axis_min=-1e-05, a1_axis_max=1e-05, b1_axis_min=-5e-06, b1_axis_max=5e-06, a2_axis_min=-2e-05, a2_axis_max=2e-05, b2_axis_min=-8e-06, b2_axis_max=8e-06)[source]

Methods

__init__([a1_axis_min, a1_axis_max, ...])

duplicate()

Returns a copy of the SYNED object instance.

from_hex_tring(hex_string)

get_axis()

Returns the lengths of the axes of the two ellipses.

get_boundaries()

Return the coordinates of the ellipses.

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.