m4.configuration package

m4.configuration.config_folder_names module

Authors
    1. Selmi: written in 2021

m4.configuration.config_reader module

Authors
    1. Selmi: written in 2021
class m4.configuration.config_reader.configuration_path(confFile)

Bases: object

class for reading data from yaml file

ACC_ROOT_FOLDER
ALIGNMENT_ROOT_FOLDER
ALL_CALIBRATION_DATA_ROOT_FOLDER
BASE_PATH
CALIBALL_ROOT_FOLDER
CALIBRATION_ROOT_FOLDER
COMMANDHISTORY_ROOT_FOLDER
CONFIGURATION_ROOT_FOLDER
FLAT_ROOT_FOLD
GEOTRANSFORM_ROOT_FOLDER
IFFUNCTIONS_ROOT_FOLDER
LOG_ROOT_FOLDER
MAPPING_TEST_ROOT_FOLDER
MIRROR_FOLDER
MODALAMPLITUDE_ROOT_FOLDER
MODALBASE_ROOT_FOLDER
MODESVECTOR_ROOT_FOLDER
NOISE_ROOT_FOLDER
OPD_IMAGES_ROOT_FOLDER
OPD_SERIES_ROOT_FOLDER
OPTICAL_FOLDER
OPT_DATA_FOLDER
OUT_FOLDER
PARABOLA_CGH_FOLDER
PHASECAM_ROOT_FOLDER
PISTON_TEST_ROOT_FOLDER
PT_ROOT_FOLDER
REPEATABILITY_ROOT_FOLDER
ROT_OPT_ALIGN_ROOT_FOLDER
SIMUL_DATA_CALIB_DM_FOLDER
SPL_ROOT_FOLDER
ZERNIKECOMMANDTEST_ROOT_FOLDER
simulated_accelerometers
simulated_angleRotator
simulated_dm
simulated_interf
simulated_m4Exapode
simulated_par
simulated_parSlider
simulated_rm
simulated_rmSlider
simulated_tempSensors

m4.configuration.config_uploader module

Authors
    1. Selmi: written in 2021
class m4.configuration.config_uploader.config_rewriter(conf_obj)

Bases: object

Class used to rewrite the file containing fixed paths

upload()

Function for set the global path

m4.configuration.create_ott module

Authors
    1. Selmi: written in 2020
class m4.configuration.create_ott.OTT(parabola_slider, reference_mirror_slider, angle_rotator, parabola, reference_mirror, m4, temperature_sensor, accelerometers)

Bases: object

accelerometers
angleRotator
m4Exapode
parabola
parabolaSlider
referenceMirror
referenceMirrorSlider
temperature

m4.configuration.ott_parameters module

Tracking numbers:

tn_conf = {mirror:'20170203',optical:'20150730',mechanical:'20150730'} ;
last mirror configuration with no slave acts, 892 acts
tn_conf = {mirror:'20150730',optical:'20150730',mechanical:'20150730'} ;
initial mirror configuration
tn_conf = {mirror:'20170430',optical:'20150730',mechanical:'20150730'} ;
mirror configuration with slave acts
ott_folder = {mirror:'MIRROR_System/',optical:'OPTICAL_System/',mechanical:'MECHANICAL_System/',
              fea:'FEA/',zemax:'ZST/',config:tn_conf}
interf: configuration parameters for the interferometer
class m4.configuration.ott_parameters.Interferometer

Bases: object

Interferometer parameters

BIN_PIX = 1
BURST_FREQ = 20.0
CAPTURE_FOLDER_NAME_4D_PC = 'D:/M4/Capture'
HORIZ_CROP = 100
N_PIXEL = array([512, 512])
PRODUCE_FOLDER_NAME_4D_PC = 'D:/M4/Produced'
PRODUCE_FOLDER_NAME_M4OTT_PC = '/home/m4/4d/M4/Produced'
QUANTIZATION = 1
SETTINGS_CONF_FILE_M4OTT_PC = '/home/m4/4dConfig/AppSettings.ini'
VERT_CROP = 100
WAVEL = 6.328e-07
WEDGE = 0.5
i4d_IP = '192.168.22.78'
i4d_port = 8011
class m4.configuration.ott_parameters.M4Parameters

Bases: object

M4COORDINATE_ROOT_FOLDER = '/Users/rm/Desktop/Arcetri/M4/ActuatorCoordinates.fits'
N_ACTS_TOT = 5352
N_ACT_SEG = 892
N_SEG = 6
V_MATRIX_FOR_SEGMENT_ROOT_811 = '/Users/rm/Desktop/Arcetri/M4/ProvaCodice/IFFunctions/20170630_105105/modeMatrix.fits'
class m4.configuration.ott_parameters.OpcUaParameters

Bases: object

Numbers for opc ua parameters

CAR = 1
PAR1 = 6
PAR2 = 7
PAR3 = 8
PAR_KIN = 10
PAR_PISTON = 14
PAR_TILT = 13
PAR_TIP = 12
RA = 0
RM1 = 3
RM2 = 4
RM3 = 5
RM_KIN = 9
RM_PISTON = 11
RM_TILT = 10
RM_TIP = 9
ST = 2
accelerometers_data_folder = '/mnt/acc_data'
accelerometers_dt = 0.005
accelerometers_dt_plc = 0.00025
accelerometers_plc_id = array([5, 6, 7, 8])
accelerometers_plc_range = array([0. , 0. , 0. , 0. , 0.32, 0.32, 0.32, 1.28])
accelerometers_plc_totcounts = 16777216
accelerometers_sensitivity = array([ 0. , 0. , 0. , 0. , 0.1, 0.1, 0.1, 10. ])
accelerometers_server = 'tcp://192.168.22.100:6660'
accelerometers_sn = ['', '', '', '', 'a', 'a', 'a', 'b']
accelerometrs_directions = ['', '', '', '', 'X', 'Z', 'Y', 'Z']
max_angle = 181
max_r_slide = 9000
max_slide = 10000
min_angle = -171
min_r_slide = -9000
min_slide = -10000
num_PT_sensor = 24
server = 'opc.tcp://192.168.22.100:48050'
zabbix_hostname = 'M4OTT'
zabbix_port = 10051
zabbix_server = '192.168.22.22'
zabbix_variables_name = ['RA', 'CAR', 'ST', 'RM1', 'RM2', 'RM3', 'PAR1', 'PAR2', 'PAR3', 'RM_TIP', 'RM_TILT', 'RM_PISTON', 'PAR_TIP', 'PAR_TILT', 'PAR_PISTON']
class m4.configuration.ott_parameters.OtherParameters

Bases: object

MASK_INDEX_SIMULATORE = 3
MASK_INDEX_TOWER = 0
class m4.configuration.ott_parameters.OttParameters

Bases: object

Optical tower parameters

BIG_IMAGE_DIAMETER = 1236
DIAMETER_IN_PIXEL_FOR_SEGMENT_IMAGES = 512
INNER_MARKERS_REJECTION_RADIUS = 100
M4_DOF = array([3, 4])
M4_MECHANICAL_PUPIL_XYRADIUS = array([458, 458, 458])
M4_OPTICAL_DIAMETER = 858
PARABOLA_DOF = array([2, 3, 4])
PIXEL_SCALE = 360.5
RADIUS_FIDUCIAL_POINT = 0.5
REFERENCE_ANGLE_DEGREES = 60
REFERENCE_ANGLE_RAD = 1.0471975511965976
RM_DOF = array([3, 4])
RM_DOF_PISTON = array([2, 3, 4])
SEGMENT_DISTANCE_FROM_CENTRE = 320
TN_FRINGES = '20181108_1'
fold_radius = 0.025
frame2m4center = 0.887
fullrslide = 0.85
m4_max_displacement = array([0, 0, 0, 1, 1, 0])
m4id = 0.54
m4od = 2.54
m4optod = 2.387
outarea = 4
par_rm_coef_for_coma_measuremets = -2.05
parab_dist = 5.4
parab_max_displacement = array([ 0, 0, 3, 10, 10, 0])
parab_radius = 0.71
pscale = 360.5633802816902
rflat_cell = 0.01
rflat_dist = 4.24
rflat_radius = 0.3
rm_max_displacement = array([ 0, 0, 0, 10, 10, 0])
segm_gap = 0.002
segment_angle = 60
class m4.configuration.ott_parameters.Sound

Bases: object

AUDIO_FILE_PATH = '/mnt/m4storage/Data/Audio'
PLAY = False

m4.configuration.start module