csaxs_bec.bec_ipython_client.plugins.omny.omny_alignment_mixin.OMNYAlignmentMixin#

class OMNYAlignmentMixin[source]#

Bases: object

Methods

compute_additional_correction_x

compute_additional_correction_y

compute_additional_correction_y_2

get_alignment_offset

Compute the alignment offset for the given angle.

read_additional_correction_x

read_additional_correction_y

read_additional_correction_y_2

read_alignment_offset

Read the alignment offset from the given directory and set the global parameter tomo_alignment_fit.

reset_correction

Reset the correction to the default values.

reset_tomo_alignment_fit

Attributes

default_correction_file

default_correction_file_x

get_alignment_offset(angle: float)[source]#

Compute the alignment offset for the given angle.

Parameters:

angle (float) – The angle to compute the alignment offset for.

Returns:

The alignment offset in x, y and z direction.

Return type:

tuple

read_alignment_offset(dir_path='/home/docs/Data10/specES1/internal/', setup='omny', use_vertical_default_values=True)[source]#

Read the alignment offset from the given directory and set the global parameter tomo_alignment_fit.

Parameters:

dir_path (str, optional) – The directory to read the alignment offset from. Defaults to os.path.expanduser(“~/Data10/specES1/internal/”).

reset_correction(use_default_correction=True)[source]#

Reset the correction to the default values. If use_default_correction is False, the correction will be set to empty values. Otherwise the default values will be loaded.

Parameters:

use_default_correction (bool, optional) – If set to true, a call reset the correction to the default values. Defaults to True.