syned.beamline.shape.Conic

class syned.beamline.shape.Conic(conic_coefficients=[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0])[source]

Defines a conic surface shape expresses via the 10 conic coeffcients.

Parameters:

conic_coefficients (list, optional) – A list with the 10 coefficients.

__init__(conic_coefficients=[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0])[source]

Methods

__init__([conic_coefficients])

duplicate()

Returns a copy of the SYNED object instance.

from_hex_tring(hex_string)

get_conic_coefficients()

Returns the coefficients.

get_convexity()

Gets the convexity flag.

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.