added JF test data and incorporated tests for gitlab runner
This commit is contained in:
BIN
tests/data/JF16T03V01.res.h5
Normal file
BIN
tests/data/JF16T03V01.res.h5
Normal file
Binary file not shown.
BIN
tests/data/gains.h5
Normal file
BIN
tests/data/gains.h5
Normal file
Binary file not shown.
BIN
tests/data/p20841/raw/run0185/data/acq0001.BSDATA.h5
Normal file
BIN
tests/data/p20841/raw/run0185/data/acq0001.BSDATA.h5
Normal file
Binary file not shown.
BIN
tests/data/p20841/raw/run0185/data/acq0001.CAMERAS.h5
Normal file
BIN
tests/data/p20841/raw/run0185/data/acq0001.CAMERAS.h5
Normal file
Binary file not shown.
BIN
tests/data/p20841/raw/run0185/data/acq0001.JF16T03V01.h5
Normal file
BIN
tests/data/p20841/raw/run0185/data/acq0001.JF16T03V01.h5
Normal file
Binary file not shown.
BIN
tests/data/p20841/raw/run0185/data/acq0001.PVDATA.h5
Normal file
BIN
tests/data/p20841/raw/run0185/data/acq0001.PVDATA.h5
Normal file
Binary file not shown.
246
tests/data/p20841/raw/run0185/meta/acq0001.json
Normal file
246
tests/data/p20841/raw/run0185/meta/acq0001.json
Normal file
@@ -0,0 +1,246 @@
|
||||
{
|
||||
"pgroup": "p20841",
|
||||
"rate_multiplicator": 1,
|
||||
"append_user_tag_to_data_dir": false,
|
||||
"user_tag": "Test acquisition for PSSS and JF correlation",
|
||||
"run_number": 185,
|
||||
"start_pulseid": 17259343145,
|
||||
"stop_pulseid": 17259343156,
|
||||
"client_name": "slic",
|
||||
"detectors": {
|
||||
"JF16T03V01": {}
|
||||
},
|
||||
"channels_list": [
|
||||
"SARFE10-PBPG050:PHOTON-ENERGY-PER-PULSE-AVG",
|
||||
"SARFE10-PBIG050-EVR0:CALCI",
|
||||
"SARFE10-PBPG050:HAMP-INTENSITY-CAL",
|
||||
"SARFE10-PBPS053:INTENSITY",
|
||||
"SARFE10-PBPS053:XPOS",
|
||||
"SARFE10-PBPS053:YPOS",
|
||||
"SARFE10-PSSS059:SPECTRUM_X",
|
||||
"SARFE10-PSSS059:SPECTRUM_Y",
|
||||
"SARFE10-PSSS059:SPECTRUM_CENTER",
|
||||
"SARFE10-PSSS059:SPECTRUM_COM",
|
||||
"SARFE10-PSSS059:SPECTRUM_FWHM",
|
||||
"SARFE10-PSSS059:SPECTRUM_STD",
|
||||
"SARFE10-PSSS059:processing_parameters",
|
||||
"SAROP31-PBPS113:INTENSITY",
|
||||
"SAROP31-PBPS113:INTENSITY_UJ",
|
||||
"SAROP31-PBPS113:Lnk9Ch0-PP_VAL_PD0",
|
||||
"SAROP31-PBPS113:Lnk9Ch0-PP_VAL_PD1",
|
||||
"SAROP31-PBPS113:Lnk9Ch0-PP_VAL_PD2",
|
||||
"SAROP31-PBPS113:Lnk9Ch0-PP_VAL_PD3",
|
||||
"SAROP31-PBPS113:XPOS",
|
||||
"SAROP31-PBPS113:YPOS",
|
||||
"SAROP31-PPRM113:intensity",
|
||||
"SAROP31-PPRM113:x_center_of_mass",
|
||||
"SAROP31-PPRM113:x_fit_amplitude",
|
||||
"SAROP31-PPRM113:x_fit_mean",
|
||||
"SAROP31-PPRM113:x_fit_offset",
|
||||
"SAROP31-PPRM113:x_fit_standard_deviation",
|
||||
"SAROP31-PPRM113:x_fwhm",
|
||||
"SAROP31-PPRM113:x_profile",
|
||||
"SAROP31-PPRM113:x_rms",
|
||||
"SAROP31-PPRM113:y_center_of_mass",
|
||||
"SAROP31-PPRM113:y_fit_amplitude",
|
||||
"SAROP31-PPRM113:y_fit_mean",
|
||||
"SAROP31-PPRM113:y_fit_offset",
|
||||
"SAROP31-PPRM113:y_fit_standard_deviation",
|
||||
"SAROP31-PPRM113:y_fwhm",
|
||||
"SAROP31-PPRM113:y_profile",
|
||||
"SAROP31-PPRM113:y_rms",
|
||||
"SAROP31-PBPS149:INTENSITY",
|
||||
"SAROP31-PBPS149:INTENSITY_UJ",
|
||||
"SAROP31-PBPS149:Lnk9Ch0-PP_VAL_PD0",
|
||||
"SAROP31-PBPS149:Lnk9Ch0-PP_VAL_PD1",
|
||||
"SAROP31-PBPS149:Lnk9Ch0-PP_VAL_PD2",
|
||||
"SAROP31-PBPS149:Lnk9Ch0-PP_VAL_PD3",
|
||||
"SAROP31-PBPS149:XPOS",
|
||||
"SAROP31-PBPS149:YPOS",
|
||||
"SAROP31-PPRM150:intensity",
|
||||
"SAROP31-PPRM150:x_center_of_mass",
|
||||
"SAROP31-PPRM150:x_fit_amplitude",
|
||||
"SAROP31-PPRM150:x_fit_mean",
|
||||
"SAROP31-PPRM150:x_fit_offset",
|
||||
"SAROP31-PPRM150:x_fit_standard_deviation",
|
||||
"SAROP31-PPRM150:x_fwhm",
|
||||
"SAROP31-PPRM150:x_profile",
|
||||
"SAROP31-PPRM150:x_rms",
|
||||
"SAROP31-PPRM150:y_center_of_mass",
|
||||
"SAROP31-PPRM150:y_fit_amplitude",
|
||||
"SAROP31-PPRM150:y_fit_mean",
|
||||
"SAROP31-PPRM150:y_fit_offset",
|
||||
"SAROP31-PPRM150:y_fit_standard_deviation",
|
||||
"SAROP31-PPRM150:y_fwhm",
|
||||
"SAROP31-PPRM150:y_profile",
|
||||
"SAROP31-PPRM150:y_rms",
|
||||
"SAR-CVME-TIFALL6:EvtSet"
|
||||
],
|
||||
"camera_list": [
|
||||
"SARFE10-PSSS059:FPICTURE"
|
||||
],
|
||||
"pv_list": [
|
||||
"SARCL02-MBND100:P-READ",
|
||||
"SARUN:FELPHOTENE.VAL",
|
||||
"SARFE10-PBPG050:PHOTON-ENERGY-PER-PULSE-AVG.VAL",
|
||||
"SARUN03-UIND030:K_SET.VAL",
|
||||
"SARUN04-UIND030:K_SET.VAL",
|
||||
"SARUN05-UIND030:K_SET.VAL",
|
||||
"SARUN06-UIND030:K_SET.VAL",
|
||||
"SARUN07-UIND030:K_SET.VAL",
|
||||
"SARUN08-UIND030:K_SET.VAL",
|
||||
"SARUN09-UIND030:K_SET.VAL",
|
||||
"SARUN10-UIND030:K_SET.VAL",
|
||||
"SARUN11-UIND030:K_SET.VAL",
|
||||
"SARUN12-UIND030:K_SET.VAL",
|
||||
"SARUN13-UIND030:K_SET.VAL",
|
||||
"SARUN14-UIND030:K_SET.VAL",
|
||||
"SARUN15-UIND030:K_SET.VAL",
|
||||
"SARFE10-PBPG050:PHOTON-ENERGY-PER-PULSE-US",
|
||||
"SARFE10-PBPG050:PHOTON-ENERGY-PER-PULSE-DS",
|
||||
"SARFE10-OAPU044:MOTOR_X",
|
||||
"SARFE10-OAPU044:MOTOR_Y",
|
||||
"SARFE10-OAPU044:MOTOR_W",
|
||||
"SARFE10-OAPU044:MOTOR_H",
|
||||
"SARFE10-PBPS053:MOTOR_X1",
|
||||
"SARFE10-PBPS053:MOTOR_X2",
|
||||
"SARFE10-PBPS053:MOTOR_PROBE",
|
||||
"SARFE10-OATT053:MOTOR_1",
|
||||
"SARFE10-OATT053:MOTOR_1.RBV",
|
||||
"SARFE10-OATT053:MOTOR_2",
|
||||
"SARFE10-OATT053:MOTOR_2.RBV",
|
||||
"SARFE10-OATT053:MOTOR_3",
|
||||
"SARFE10-OATT053:MOTOR_3.RBV",
|
||||
"SARFE10-OATT053:MOTOR_4",
|
||||
"SARFE10-OATT053:MOTOR_4.RBV",
|
||||
"SARFE10-OATT053:MOTOR_5",
|
||||
"SARFE10-OATT053:MOTOR_5.RBV",
|
||||
"SARFE10-OATT053:MOTOR_6",
|
||||
"SARFE10-OATT053:MOTOR_6.RBV",
|
||||
"SARFE10-OATT053:ENERGY",
|
||||
"SARFE10-OATT053:TRANS_SP",
|
||||
"SARFE10-OATT053:TRANS_RB",
|
||||
"SARFE10-PPRM053:MOTOR_PROBE.RBV",
|
||||
"SARFE10-PSSS059:SPECTRUM_X",
|
||||
"SARFE10-PSSS059:SPECTRUM_Y",
|
||||
"SARFE10-PSSS059:SPECTRUM_CENTER",
|
||||
"SARFE10-PSSS059:SPECTRUM_COM",
|
||||
"SARFE10-PSSS059:SPECTRUM_FWHM",
|
||||
"SARFE10-PSSS059:SPECTRUM_STD",
|
||||
"SARFE10-PSSS059:FIT_ERR",
|
||||
"SARFE10-PSSS059:processing_parameters",
|
||||
"SARFE10-PSSS059:SPECTRUM_AVG_CENTER,SARFE10-PSSS059:SPECTRUM_AVG_FWHM",
|
||||
"SARFE10-PSSS059:SPECTRUM_AVG_Y",
|
||||
"SAROP31-OOMH067:W_X.RBV",
|
||||
"SAROP31-OOMH067:W_Y.RBV",
|
||||
"SAROP31-OOMH067:W_RX.RBV",
|
||||
"SAROP31-OOMH067:W_RY.RBV",
|
||||
"SAROP31-OOMH067:W_RZ.RBV",
|
||||
"SAROP31-OOMH067:BU.RBV",
|
||||
"SAROP31-OOMH067:BD.RBV",
|
||||
"SAROP31-OOMH067:VS1.RBV",
|
||||
"SAROP31-OOMH067:VS2.RBV",
|
||||
"SAROP31-OOMH067:VS3.RBV",
|
||||
"SAROP31-OOMH067:TX.RBV",
|
||||
"SAROP31-OOMH067:RY.RBV",
|
||||
"SAROP31-PSCR068:MOTOR_PROBE.RBV",
|
||||
"SAROP31-OOMH084:W_X.RBV",
|
||||
"SAROP31-OOMH084:W_Y.RBV",
|
||||
"SAROP31-OOMH084:W_RX.RBV",
|
||||
"SAROP31-OOMH084:W_RY.RBV",
|
||||
"SAROP31-OOMH084:W_RZ.RBV",
|
||||
"SAROP31-OOMH084:BU.RBV",
|
||||
"SAROP31-OOMH084:BD.RBV",
|
||||
"SAROP31-OOMH084:VS1.RBV",
|
||||
"SAROP31-OOMH084:VS2.RBV",
|
||||
"SAROP31-OOMH084:VS3.RBV",
|
||||
"SAROP31-OOMH084:TX.RBV",
|
||||
"SAROP31-OOMH084:RY.RBV",
|
||||
"SAROP31-PPRM085:MOTOR_PROBE.RBV",
|
||||
"SAROP31-OAPU107:MOTOR_X.VAL",
|
||||
"SAROP31-OAPU107:MOTOR_X.RBV",
|
||||
"SAROP31-OAPU107:MOTOR_Y.VAL",
|
||||
"SAROP31-OAPU107:MOTOR_Y.RBV",
|
||||
"SAROP31-PBPS113:MOTOR_X1.RBV",
|
||||
"SAROP31-PBPS113:MOTOR_Y1.RBV",
|
||||
"SAROP31-PBPS113:MOTOR_PROBE.RBV",
|
||||
"",
|
||||
"SAROP31-PPRM113:MOTOR_PROBE.RBV",
|
||||
"SAROP31-OLAS147:MOTOR_1.RBV",
|
||||
"SAROP31-OAPU149:MOTOR_X.VAL",
|
||||
"SAROP31-OAPU149:MOTOR_X.RBV",
|
||||
"SAROP31-OAPU149:MOTOR_Y.VAL",
|
||||
"SAROP31-OAPU149:MOTOR_Y.RBV",
|
||||
"SAROP31-PBPS149:MOTOR_X1.RBV",
|
||||
"SAROP31-PBPS149:MOTOR_Y1.RBV",
|
||||
"SAROP31-PBPS149:MOTOR_PROBE.RBV",
|
||||
"SAROP31-PPRM150:intensity",
|
||||
"SAROP31-PPRM150:x_center_of_mass",
|
||||
"SAROP31-PPRM150:x_fit_amplitude",
|
||||
"SAROP31-PPRM150:x_fit_mean",
|
||||
"SAROP31-PPRM150:x_fit_offset",
|
||||
"SAROP31-PPRM150:x_fit_standard_deviation",
|
||||
"SAROP31-PPRM150:x_fwhm",
|
||||
"SAROP31-PPRM150:x_profile",
|
||||
"SAROP31-PPRM150:x_rms",
|
||||
"SAROP31-PPRM150:y_center_of_mass",
|
||||
"SAROP31-PPRM150:y_fit_amplitude",
|
||||
"SAROP31-PPRM150:y_fit_mean",
|
||||
"SAROP31-PPRM150:y_fit_offset",
|
||||
"SAROP31-PPRM150:y_fit_standard_deviation",
|
||||
"SAROP31-PPRM150:y_fwhm",
|
||||
"SAROP31-PPRM150:y_profile",
|
||||
"SAROP31-PPRM150:y_rms",
|
||||
"SAROP31-OATA150:MOTOR_1.RBV",
|
||||
"SAROP31-OATA150:MOTOR_2.RBV",
|
||||
"SAROP31-OATA150:MOTOR_3.RBV",
|
||||
"SAROP31-OATA150:MOTOR_4.RBV",
|
||||
"SAROP31-OATA150:MOTOR_5.RBV",
|
||||
"SAROP31-OATA150:MOTOR_6.RBV",
|
||||
"SAROP31-OATA150:TRANS_SP",
|
||||
"SAROP31-OATA150:TRANS_RB",
|
||||
"SAROP31-OPPI151:MOTOR_X.RBV",
|
||||
"SAROP31-OPPI151:MOTOR_Y.RBV",
|
||||
"SAROP31-ODMV152:W_X.RBV",
|
||||
"SAROP31-ODMV152:W_Y.RBV",
|
||||
"SAROP31-ODMV152:W_RX.RBV",
|
||||
"SAROP31-ODMV152:W_RZ.RBV",
|
||||
"SAROP31-ODMV152:BU.RBV",
|
||||
"SAROP31-ODMV152:BD.RBV",
|
||||
"SAROP31-ODMV152:VS1.RBV",
|
||||
"SAROP31-ODMV152:VS2.RBV",
|
||||
"SAROP31-ODMV152:VS3.RBV",
|
||||
"SAROP31-ODMV152:TX.RBV",
|
||||
"SAROP31-OKBV153:W_X.RBV",
|
||||
"SAROP31-OKBV153:W_Y.RBV",
|
||||
"SAROP31-OKBV153:W_RX.RBV",
|
||||
"SAROP31-OKBV153:W_RY.RBV",
|
||||
"SAROP31-OKBV153:W_RZ.RBV",
|
||||
"SAROP31-OKBV153:BU.RBV",
|
||||
"SAROP31-OKBV153:BD.RBV",
|
||||
"SAROP31-OKBV153:TY1.RBV",
|
||||
"SAROP31-OKBV153:TY2.RBV",
|
||||
"SAROP31-OKBV153:TY3.RBV",
|
||||
"SAROP31-OKBV153:TX1.RBV",
|
||||
"SAROP31-OKBV153:TX2.RBV",
|
||||
"SAROP31-OKBH154:W_X.RBV",
|
||||
"SAROP31-OKBH154:W_Y.RBV",
|
||||
"SAROP31-OKBH154:W_RX.RBV",
|
||||
"SAROP31-OKBH154:W_RY.RBV",
|
||||
"SAROP31-OKBH154:W_RZ.RBV",
|
||||
"SAROP31-OKBH154:BU.RBV",
|
||||
"SAROP31-OKBH154:BD.RBV",
|
||||
"SAROP31-OKBH154:TY1.RBV",
|
||||
"SAROP31-OKBH154:TY2.RBV",
|
||||
"SAROP31-OKBH154:TY3.RBV",
|
||||
"SAROP31-OKBH154:TX2.RBV",
|
||||
"SARES30MOBI1:MOT_1",
|
||||
"SARES30MOBI1:MOT_2",
|
||||
"SARES30MOBI1:MOT_3"
|
||||
],
|
||||
"user_tag_cleaned": "Test_acquisition_for_PSSS_and_JF_correlation",
|
||||
"beamline": "cristallina",
|
||||
"acquisition_number": 1,
|
||||
"request_time": "2023-02-10 02:26:16.088150",
|
||||
"unique_acquisition_run_number": 519
|
||||
}
|
||||
49
tests/data/p20841/raw/run0185/meta/scan.json
Normal file
49
tests/data/p20841/raw/run0185/meta/scan.json
Normal file
@@ -0,0 +1,49 @@
|
||||
{
|
||||
"scan_files": [
|
||||
[
|
||||
"/sf/cristallina/data/p20841/raw/run0185/data/acq0001.PVDATA.h5",
|
||||
"/sf/cristallina/data/p20841/raw/run0185/data/acq0001.BSDATA.h5",
|
||||
"/sf/cristallina/data/p20841/raw/run0185/data/acq0001.CAMERAS.h5",
|
||||
"/sf/cristallina/data/p20841/raw/run0185/data/acq0001.JF16T03V01.h5"
|
||||
]
|
||||
],
|
||||
"pulseIds": [
|
||||
[
|
||||
17259343145,
|
||||
17259343156
|
||||
]
|
||||
],
|
||||
"scan_parameters": {
|
||||
"scan_name": "dummy",
|
||||
"Id": [
|
||||
"dummy"
|
||||
],
|
||||
"name": [
|
||||
"dummy"
|
||||
],
|
||||
"offset": [
|
||||
0
|
||||
],
|
||||
"conversion_factor": [
|
||||
1.0
|
||||
]
|
||||
},
|
||||
"scan_readbacks": [
|
||||
[
|
||||
0
|
||||
]
|
||||
],
|
||||
"scan_step_info": [
|
||||
[]
|
||||
],
|
||||
"scan_values": [
|
||||
[
|
||||
0
|
||||
]
|
||||
],
|
||||
"scan_readbacks_raw": [
|
||||
[
|
||||
0
|
||||
]
|
||||
]
|
||||
}
|
||||
BIN
tests/data/p20841/raw/run0205/data/acq0001.BSDATA.h5
Normal file
BIN
tests/data/p20841/raw/run0205/data/acq0001.BSDATA.h5
Normal file
Binary file not shown.
BIN
tests/data/p20841/raw/run0205/data/acq0001.JF16T03V01.h5
Normal file
BIN
tests/data/p20841/raw/run0205/data/acq0001.JF16T03V01.h5
Normal file
Binary file not shown.
BIN
tests/data/p20841/raw/run0205/data/acq0001.PVDATA.h5
Normal file
BIN
tests/data/p20841/raw/run0205/data/acq0001.PVDATA.h5
Normal file
Binary file not shown.
249
tests/data/p20841/raw/run0205/meta/acq0001.json
Normal file
249
tests/data/p20841/raw/run0205/meta/acq0001.json
Normal file
@@ -0,0 +1,249 @@
|
||||
{
|
||||
"pgroup": "p20841",
|
||||
"user_tag": "PMS, Magnet at 78K, 400V excitation",
|
||||
"start_pulseid": 17358560870,
|
||||
"stop_pulseid": 17358560890,
|
||||
"rate_multiplicator": 1,
|
||||
"channels_list": [
|
||||
"SARFE10-PBPG050:PHOTON-ENERGY-PER-PULSE-AVG",
|
||||
"SARFE10-PBIG050-EVR0:CALCI",
|
||||
"SARFE10-PBPG050:HAMP-INTENSITY-CAL",
|
||||
"SARFE10-PBPS053:INTENSITY",
|
||||
"SARFE10-PBPS053:XPOS",
|
||||
"SARFE10-PBPS053:YPOS",
|
||||
"SARFE10-PSSS059:FIT-COM",
|
||||
"SARFE10-PSSS059:FIT-FWHM",
|
||||
"SARFE10-PSSS059:FIT-RES",
|
||||
"SARFE10-PSSS059:FIT-RMS",
|
||||
"SARFE10-PSSS059:SPECT-COM",
|
||||
"SARFE10-PSSS059:SPECT-RES",
|
||||
"SARFE10-PSSS059:SPECT-RMS",
|
||||
"SARFE10-PSSS059:SPECTRUM_Y_SUMSARFE10-PSSS059:SPECTRUM_X",
|
||||
"SARFE10-PSSS059:SPECTRUM_Y",
|
||||
"SARFE10-PSSS059:processing_parameters",
|
||||
"SAROP31-PBPS113:INTENSITY",
|
||||
"SAROP31-PBPS113:INTENSITY_UJ",
|
||||
"SAROP31-PBPS113:Lnk9Ch0-PP_VAL_PD0",
|
||||
"SAROP31-PBPS113:Lnk9Ch0-PP_VAL_PD1",
|
||||
"SAROP31-PBPS113:Lnk9Ch0-PP_VAL_PD2",
|
||||
"SAROP31-PBPS113:Lnk9Ch0-PP_VAL_PD3",
|
||||
"SAROP31-PBPS113:XPOS",
|
||||
"SAROP31-PBPS113:YPOS",
|
||||
"SAROP31-PPRM113:intensity",
|
||||
"SAROP31-PPRM113:x_center_of_mass",
|
||||
"SAROP31-PPRM113:x_fit_amplitude",
|
||||
"SAROP31-PPRM113:x_fit_mean",
|
||||
"SAROP31-PPRM113:x_fit_offset",
|
||||
"SAROP31-PPRM113:x_fit_standard_deviation",
|
||||
"SAROP31-PPRM113:x_fwhm",
|
||||
"SAROP31-PPRM113:x_profile",
|
||||
"SAROP31-PPRM113:x_rms",
|
||||
"SAROP31-PPRM113:y_center_of_mass",
|
||||
"SAROP31-PPRM113:y_fit_amplitude",
|
||||
"SAROP31-PPRM113:y_fit_mean",
|
||||
"SAROP31-PPRM113:y_fit_offset",
|
||||
"SAROP31-PPRM113:y_fit_standard_deviation",
|
||||
"SAROP31-PPRM113:y_fwhm",
|
||||
"SAROP31-PPRM113:y_profile",
|
||||
"SAROP31-PPRM113:y_rms",
|
||||
"SAROP31-PBPS149:INTENSITY",
|
||||
"SAROP31-PBPS149:INTENSITY_UJ",
|
||||
"SAROP31-PBPS149:Lnk9Ch0-PP_VAL_PD0",
|
||||
"SAROP31-PBPS149:Lnk9Ch0-PP_VAL_PD1",
|
||||
"SAROP31-PBPS149:Lnk9Ch0-PP_VAL_PD2",
|
||||
"SAROP31-PBPS149:Lnk9Ch0-PP_VAL_PD3",
|
||||
"SAROP31-PBPS149:XPOS",
|
||||
"SAROP31-PBPS149:YPOS",
|
||||
"SAROP31-PPRM150:intensity",
|
||||
"SAROP31-PPRM150:x_center_of_mass",
|
||||
"SAROP31-PPRM150:x_fit_amplitude",
|
||||
"SAROP31-PPRM150:x_fit_mean",
|
||||
"SAROP31-PPRM150:x_fit_offset",
|
||||
"SAROP31-PPRM150:x_fit_standard_deviation",
|
||||
"SAROP31-PPRM150:x_fwhm",
|
||||
"SAROP31-PPRM150:x_profile",
|
||||
"SAROP31-PPRM150:x_rms",
|
||||
"SAROP31-PPRM150:y_center_of_mass",
|
||||
"SAROP31-PPRM150:y_fit_amplitude",
|
||||
"SAROP31-PPRM150:y_fit_mean",
|
||||
"SAROP31-PPRM150:y_fit_offset",
|
||||
"SAROP31-PPRM150:y_fit_standard_deviation",
|
||||
"SAROP31-PPRM150:y_fwhm",
|
||||
"SAROP31-PPRM150:y_profile",
|
||||
"SAROP31-PPRM150:y_rms",
|
||||
"SAR-CVME-TIFALL6:EvtSet"
|
||||
],
|
||||
"pv_list": [
|
||||
"SARCL02-MBND100:P-READ",
|
||||
"SARUN:FELPHOTENE.VAL",
|
||||
"SARFE10-PBPG050:PHOTON-ENERGY-PER-PULSE-AVG.VAL",
|
||||
"SARUN03-UIND030:K_SET.VAL",
|
||||
"SARUN04-UIND030:K_SET.VAL",
|
||||
"SARUN05-UIND030:K_SET.VAL",
|
||||
"SARUN06-UIND030:K_SET.VAL",
|
||||
"SARUN07-UIND030:K_SET.VAL",
|
||||
"SARUN08-UIND030:K_SET.VAL",
|
||||
"SARUN09-UIND030:K_SET.VAL",
|
||||
"SARUN10-UIND030:K_SET.VAL",
|
||||
"SARUN11-UIND030:K_SET.VAL",
|
||||
"SARUN12-UIND030:K_SET.VAL",
|
||||
"SARUN13-UIND030:K_SET.VAL",
|
||||
"SARUN14-UIND030:K_SET.VAL",
|
||||
"SARUN15-UIND030:K_SET.VAL",
|
||||
"SARFE10-PBPG050:PHOTON-ENERGY-PER-PULSE-US",
|
||||
"SARFE10-PBPG050:PHOTON-ENERGY-PER-PULSE-DS",
|
||||
"SARFE10-OAPU044:MOTOR_X",
|
||||
"SARFE10-OAPU044:MOTOR_Y",
|
||||
"SARFE10-OAPU044:MOTOR_W",
|
||||
"SARFE10-OAPU044:MOTOR_H",
|
||||
"SARFE10-PBPS053:MOTOR_X1",
|
||||
"SARFE10-PBPS053:MOTOR_X2",
|
||||
"SARFE10-PBPS053:MOTOR_PROBE",
|
||||
"SARFE10-OATT053:MOTOR_1",
|
||||
"SARFE10-OATT053:MOTOR_1.RBV",
|
||||
"SARFE10-OATT053:MOTOR_2",
|
||||
"SARFE10-OATT053:MOTOR_2.RBV",
|
||||
"SARFE10-OATT053:MOTOR_3",
|
||||
"SARFE10-OATT053:MOTOR_3.RBV",
|
||||
"SARFE10-OATT053:MOTOR_4",
|
||||
"SARFE10-OATT053:MOTOR_4.RBV",
|
||||
"SARFE10-OATT053:MOTOR_5",
|
||||
"SARFE10-OATT053:MOTOR_5.RBV",
|
||||
"SARFE10-OATT053:MOTOR_6",
|
||||
"SARFE10-OATT053:MOTOR_6.RBV",
|
||||
"SARFE10-OATT053:ENERGY",
|
||||
"SARFE10-OATT053:TRANS_SP",
|
||||
"SARFE10-OATT053:TRANS_RB",
|
||||
"SARFE10-PPRM053:MOTOR_PROBE.RBV",
|
||||
"SARFE10-PSSS059:SPECTRUM_X",
|
||||
"SARFE10-PSSS059:SPECTRUM_Y",
|
||||
"SARFE10-PSSS059:SPECTRUM_CENTER",
|
||||
"SARFE10-PSSS059:SPECTRUM_COM",
|
||||
"SARFE10-PSSS059:SPECTRUM_FWHM",
|
||||
"SARFE10-PSSS059:SPECTRUM_STD",
|
||||
"SARFE10-PSSS059:FIT_ERR",
|
||||
"SARFE10-PSSS059:processing_parameters",
|
||||
"SARFE10-PSSS059:SPECTRUM_AVG_CENTER,SARFE10-PSSS059:SPECTRUM_AVG_FWHM",
|
||||
"SARFE10-PSSS059:SPECTRUM_AVG_Y",
|
||||
"SAROP31-OOMH067:W_X.RBV",
|
||||
"SAROP31-OOMH067:W_Y.RBV",
|
||||
"SAROP31-OOMH067:W_RX.RBV",
|
||||
"SAROP31-OOMH067:W_RY.RBV",
|
||||
"SAROP31-OOMH067:W_RZ.RBV",
|
||||
"SAROP31-OOMH067:BU.RBV",
|
||||
"SAROP31-OOMH067:BD.RBV",
|
||||
"SAROP31-OOMH067:VS1.RBV",
|
||||
"SAROP31-OOMH067:VS2.RBV",
|
||||
"SAROP31-OOMH067:VS3.RBV",
|
||||
"SAROP31-OOMH067:TX.RBV",
|
||||
"SAROP31-OOMH067:RY.RBV",
|
||||
"SAROP31-PSCR068:MOTOR_PROBE.RBV",
|
||||
"SAROP31-OOMH084:W_X.RBV",
|
||||
"SAROP31-OOMH084:W_Y.RBV",
|
||||
"SAROP31-OOMH084:W_RX.RBV",
|
||||
"SAROP31-OOMH084:W_RY.RBV",
|
||||
"SAROP31-OOMH084:W_RZ.RBV",
|
||||
"SAROP31-OOMH084:BU.RBV",
|
||||
"SAROP31-OOMH084:BD.RBV",
|
||||
"SAROP31-OOMH084:VS1.RBV",
|
||||
"SAROP31-OOMH084:VS2.RBV",
|
||||
"SAROP31-OOMH084:VS3.RBV",
|
||||
"SAROP31-OOMH084:TX.RBV",
|
||||
"SAROP31-OOMH084:RY.RBV",
|
||||
"SAROP31-PPRM085:MOTOR_PROBE.RBV",
|
||||
"SAROP31-OAPU107:MOTOR_X.VAL",
|
||||
"SAROP31-OAPU107:MOTOR_X.RBV",
|
||||
"SAROP31-OAPU107:MOTOR_Y.VAL",
|
||||
"SAROP31-OAPU107:MOTOR_Y.RBV",
|
||||
"SAROP31-PBPS113:MOTOR_X1.RBV",
|
||||
"SAROP31-PBPS113:MOTOR_Y1.RBV",
|
||||
"SAROP31-PBPS113:MOTOR_PROBE.RBV",
|
||||
"SAROP31-PPRM113:MOTOR_PROBE.RBV",
|
||||
"SAROP31-OLAS147:MOTOR_1.RBV",
|
||||
"SAROP31-OAPU149:MOTOR_X.VAL",
|
||||
"SAROP31-OAPU149:MOTOR_X.RBV",
|
||||
"SAROP31-OAPU149:MOTOR_Y.VAL",
|
||||
"SAROP31-OAPU149:MOTOR_Y.RBV",
|
||||
"SAROP31-PBPS149:MOTOR_X1.RBV",
|
||||
"SAROP31-PBPS149:MOTOR_Y1.RBV",
|
||||
"SAROP31-PBPS149:MOTOR_PROBE.RBV",
|
||||
"SAROP31-PPRM150:intensity",
|
||||
"SAROP31-PPRM150:x_center_of_mass",
|
||||
"SAROP31-PPRM150:x_fit_amplitude",
|
||||
"SAROP31-PPRM150:x_fit_mean",
|
||||
"SAROP31-PPRM150:x_fit_offset",
|
||||
"SAROP31-PPRM150:x_fit_standard_deviation",
|
||||
"SAROP31-PPRM150:x_fwhm",
|
||||
"SAROP31-PPRM150:x_profile",
|
||||
"SAROP31-PPRM150:x_rms",
|
||||
"SAROP31-PPRM150:y_center_of_mass",
|
||||
"SAROP31-PPRM150:y_fit_amplitude",
|
||||
"SAROP31-PPRM150:y_fit_mean",
|
||||
"SAROP31-PPRM150:y_fit_offset",
|
||||
"SAROP31-PPRM150:y_fit_standard_deviation",
|
||||
"SAROP31-PPRM150:y_fwhm",
|
||||
"SAROP31-PPRM150:y_profile",
|
||||
"SAROP31-PPRM150:y_rms",
|
||||
"SAROP31-OATA150:MOTOR_1.RBV",
|
||||
"SAROP31-OATA150:MOTOR_2.RBV",
|
||||
"SAROP31-OATA150:MOTOR_3.RBV",
|
||||
"SAROP31-OATA150:MOTOR_4.RBV",
|
||||
"SAROP31-OATA150:MOTOR_5.RBV",
|
||||
"SAROP31-OATA150:MOTOR_6.RBV",
|
||||
"SAROP31-OATA150:TRANS_SP",
|
||||
"SAROP31-OATA150:TRANS_RB",
|
||||
"SAROP31-OPPI151:MOTOR_X.RBV",
|
||||
"SAROP31-OPPI151:MOTOR_Y.RBV",
|
||||
"SAROP31-ODMV152:W_X.RBV",
|
||||
"SAROP31-ODMV152:W_Y.RBV",
|
||||
"SAROP31-ODMV152:W_RX.RBV",
|
||||
"SAROP31-ODMV152:W_RZ.RBV",
|
||||
"SAROP31-ODMV152:BU.RBV",
|
||||
"SAROP31-ODMV152:BD.RBV",
|
||||
"SAROP31-ODMV152:VS1.RBV",
|
||||
"SAROP31-ODMV152:VS2.RBV",
|
||||
"SAROP31-ODMV152:VS3.RBV",
|
||||
"SAROP31-ODMV152:TX.RBV",
|
||||
"SAROP31-OKBV153:W_X.RBV",
|
||||
"SAROP31-OKBV153:W_Y.RBV",
|
||||
"SAROP31-OKBV153:W_RX.RBV",
|
||||
"SAROP31-OKBV153:W_RY.RBV",
|
||||
"SAROP31-OKBV153:W_RZ.RBV",
|
||||
"SAROP31-OKBV153:BU.RBV",
|
||||
"SAROP31-OKBV153:BD.RBV",
|
||||
"SAROP31-OKBV153:TY1.RBV",
|
||||
"SAROP31-OKBV153:TY2.RBV",
|
||||
"SAROP31-OKBV153:TY3.RBV",
|
||||
"SAROP31-OKBV153:TX1.RBV",
|
||||
"SAROP31-OKBV153:TX2.RBV",
|
||||
"SAROP31-OKBH154:W_X.RBV",
|
||||
"SAROP31-OKBH154:W_Y.RBV",
|
||||
"SAROP31-OKBH154:W_RX.RBV",
|
||||
"SAROP31-OKBH154:W_RY.RBV",
|
||||
"SAROP31-OKBH154:W_RZ.RBV",
|
||||
"SAROP31-OKBH154:BU.RBV",
|
||||
"SAROP31-OKBH154:BD.RBV",
|
||||
"SAROP31-OKBH154:TY1.RBV",
|
||||
"SAROP31-OKBH154:TY2.RBV",
|
||||
"SAROP31-OKBH154:TY3.RBV",
|
||||
"SAROP31-OKBH154:TX2.RBV",
|
||||
"SARES30MOBI1:MOT_1",
|
||||
"SARES30MOBI1:MOT_2",
|
||||
"SARES30MOBI1:MOT_3",
|
||||
"SARES30-MCS2750:MOT_1.RBV",
|
||||
"SARES30-MCS2750:MOT_1.VAL",
|
||||
"SARES30-MCS2750:MOT_2.RBV",
|
||||
"SARES30-MCS2750:MOT_2.VAL",
|
||||
"SARES30-MCS2750:MOT_3.RBV",
|
||||
"SARES30-MCS2750:MOT_3.VAL"
|
||||
],
|
||||
"detectors": {
|
||||
"JF16T03V01": {}
|
||||
},
|
||||
"run_number": 205,
|
||||
"user_tag_cleaned": "PMS__Magnet_at_78K__400V_excitation",
|
||||
"beamline": "cristallina",
|
||||
"acquisition_number": 1,
|
||||
"request_time": "2023-02-21 14:02:00.301201",
|
||||
"unique_acquisition_run_number": 639
|
||||
}
|
||||
48
tests/data/p20841/raw/run0205/meta/scan.json
Normal file
48
tests/data/p20841/raw/run0205/meta/scan.json
Normal file
@@ -0,0 +1,48 @@
|
||||
{
|
||||
"scan_files": [
|
||||
[
|
||||
"/sf/cristallina/data/p20841/raw/run0205/data/acq0001.PVDATA.h5",
|
||||
"/sf/cristallina/data/p20841/raw/run0205/data/acq0001.BSDATA.h5",
|
||||
"/sf/cristallina/data/p20841/raw/run0205/data/acq0001.JF16T03V01.h5"
|
||||
]
|
||||
],
|
||||
"pulseIds": [
|
||||
[
|
||||
17358560870,
|
||||
17358560890
|
||||
]
|
||||
],
|
||||
"scan_parameters": {
|
||||
"scan_name": "dummy",
|
||||
"Id": [
|
||||
"dummy"
|
||||
],
|
||||
"name": [
|
||||
"dummy"
|
||||
],
|
||||
"offset": [
|
||||
0
|
||||
],
|
||||
"conversion_factor": [
|
||||
1.0
|
||||
]
|
||||
},
|
||||
"scan_readbacks": [
|
||||
[
|
||||
0
|
||||
]
|
||||
],
|
||||
"scan_step_info": [
|
||||
[]
|
||||
],
|
||||
"scan_values": [
|
||||
[
|
||||
0
|
||||
]
|
||||
],
|
||||
"scan_readbacks_raw": [
|
||||
[
|
||||
0
|
||||
]
|
||||
]
|
||||
}
|
||||
@@ -1,25 +1,30 @@
|
||||
import pytest
|
||||
import os
|
||||
import numpy as np
|
||||
from matplotlib import pyplot as plt
|
||||
import unittest.mock
|
||||
|
||||
from sfdata import SFDataFiles
|
||||
|
||||
from cristallina.plot import plot_image_channel
|
||||
|
||||
__author__ = "Alexander Steppke"
|
||||
|
||||
# copied files to local git for testing:
|
||||
# Auto-located gain file: /sf/jungfrau/config/gainMaps/JF16T03V01/gains.h5
|
||||
# Auto-located pedestal file: /sf/cristallina/data/p20841/raw/JF_pedestals/20230221_103010.JF16T03V01.res.h5
|
||||
|
||||
@unittest.mock.patch("jungfrau_utils.file_adapter.locate_gain_file", lambda path, **kwargs: "tests/data/gains.h5")
|
||||
@unittest.mock.patch("jungfrau_utils.file_adapter.locate_pedestal_file", lambda path, **kwargs: "tests/data/JF16T03V01.res.h5")
|
||||
def test_plot_image():
|
||||
fig, ax = plt.subplots()
|
||||
|
||||
run_number = 283
|
||||
|
||||
with SFDataFiles(f"/sf/cristallina/data/p19739/raw/run{run_number:04d}/data/acq0001.*.h5") as data:
|
||||
with SFDataFiles(f"tests/data/p20841/raw/run0205/data/acq*.h5") as data:
|
||||
subset = data["JF16T03V01", ]
|
||||
JF = subset["JF16T03V01"]
|
||||
JF = subset["JF16T03V01", ]
|
||||
|
||||
fig, ax = plt.subplots()
|
||||
|
||||
plot_image_channel(subset,"JF16T03V01", ax=ax)
|
||||
|
||||
im = ax.get_images()[0]
|
||||
assert np.isclose(np.sum(im.get_array()), 1095710.4)
|
||||
assert np.isclose(np.sum(im.get_array()), 71426.29)
|
||||
Reference in New Issue
Block a user