csaxs_bec.bec_ipython_client.plugins.omny.omny_alignment_mixin.OMNYAlignmentMixin#
- class OMNYAlignmentMixin[source]#
Bases:
objectMethods
compute_additional_correction_xcompute_additional_correction_ycompute_additional_correction_y_2Compute the alignment offset for the given angle.
read_additional_correction_xread_additional_correction_yread_additional_correction_y_2Read the alignment offset from the given directory and set the global parameter tomo_alignment_fit.
Reset the correction to the default values.
reset_tomo_alignment_fitAttributes
default_correction_filedefault_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.