Latest Scan Config is not loaded propely
In some cases the latest scan config is not properly loaded. Instead of the latest interpreted file (or raw data file) the default chip yaml is loaded:
silab@silab48:~/git/bdaq53/bdaq53/scans$ python calibrate_hitor_ptot.py
2020-10-30 16:38:42,299 [HitorCalibPToT ] - WARNING No explicit configuration supplied for chip 0x0001. Using '/home/silab/git/bdaq53/bdaq53/system/../chips/ITkPixV1_default.cfg.yaml'!
2020-10-30 16:38:42,299 [HitorCalibPToT ] - INFO Loading chip configuration for chip 0x0001 from /home/silab/git/bdaq53/bdaq53/system/../chips/ITkPixV1_default.cfg.yaml
2020-10-30 16:38:42,303 [HitorCalibPToT ] - INFO Found 1 chip(s) of 1 module(s) defined in the testbench
2020-10-30 16:38:42,303 [HitorCalibPToT ] - INFO Initializing HitorCalibPToT...
2020-10-30 16:38:42,304 [Periphery ] - NOTICE Periphery is disabled.
2020-10-30 16:38:42,961 [BDAQ53 ] - SUCCESS Found board BDAQ53 with Displayport running firmware version 1.2
2020-10-30 16:38:42,961 [BDAQ53 ] - INFO Board has 7 Aurora receiver channels
2020-10-30 16:38:43,097 [basil.HL.si570 ] - INFO Changed Si570 reference frequency to 160.0 MHz
2020-10-30 16:38:43,301 [BDAQ53 ] - INFO Aurora receiver(s) running at 640Mb/s
2020-10-30 16:38:43,303 [HitorCalibPToT ] - INFO Initializing chips...
2020-10-30 16:38:43,304 [ITkPixV1 - 0x0001] - INFO Initializing communication...
2020-10-30 16:38:43,313 [ITkPixV1 - 0x0001] - INFO Chip is running at 640Mb/s
2020-10-30 16:38:43,313 [ITkPixV1 - 0x0001] - INFO 1 Aurora lane active
2020-10-30 16:38:44,689 [ITkPixV1 - 0x0001] - SUCCESS Communication established
2020-10-30 16:38:47,160 [HitorCalibPToT ] - INFO Configuring chip 0x0001...
2020-10-30 16:38:49,755 [BDAQ53 ] - INFO LEMO_MUX_TX0 set to 1 (CMD_LOOP_START_PULSE)
2020-10-30 16:38:49,755 [BDAQ53 ] - INFO Configuring TDC modules (0, 1, 2, 3)...
0 32 0 32
1%|█▍ | 304/38400 [00:09<20:41, 30.68 Mask steps/s]
2020-10-30 16:38:59,789 [HitorCalibPToT ] - SUCCESS Scan finished
2020-10-30 16:38:59,795 [ITkPixV1 - 0x0001] - INFO Recording chip status...
2020-10-30 16:39:02,257 [ITkPixV1 - 0x0001] - INFO Mean chip temperature is (1404 +- 6)°C
2020-10-30 16:39:02,292 [ITkPixV1 - 0x0001] - INFO Mean chip temperature is (4095 +- 6)°C
2020-10-30 16:39:02,364 [ITkPixV1 - 0x0001] - INFO Mean chip temperature is (-24 +- 6)°C
2020-10-30 16:39:02,436 [ITkPixV1 - 0x0001] - INFO Mean chip temperature is (34 +- 6)°C
2020-10-30 16:39:02,507 [ITkPixV1 - 0x0001] - INFO Mean chip temperature is (41 +- 6)°C
2020-10-30 16:39:02,594 [HitorCalibPToT ] - INFO Starting analysis for chip_0 (0x0001)
2020-10-30 16:39:02,600 [Analysis ] - INFO Analyzing data...
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 4.07M/4.07M [00:05<00:00, 679k Words/s]
2020-10-30 16:39:09,070 [HitorCalibPToT ] - INFO Creating Histograms...
100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:03<00:00, 3.09s/ Scan parameters]
2020-10-30 16:39:12,193 [HitorCalibPToT ] - INFO Interpolation Starting...
2020-10-30 16:39:12,216 [HitorCalibPToT ] - INFO 1024 Interpolations out of 1024 failed.
2020-10-30 16:39:12,579 [Plotting ] - INFO Creating selected plots...
2020-10-30 16:39:14,458 [Plotting ] - ERROR Could not create tot param histogram plot! (division by zero)
2020-10-30 16:39:14,487 [Plotting ] - ERROR Could not create relBCID param histogram plot! (division by zero)
2020-10-30 16:39:16,426 [Plotting ] - ERROR Could not create tdc param histogram plot!
2020-10-30 16:39:17,819 [Plotting ] - INFO Closing output PDF file: /home/silab/git/bdaq53/bdaq53/scans/output_data/module_0/chip_0/20201030_163842_hitor_calibration_ptot_interpreted.pdf
2020-10-30 16:39:18,030 [HitorCalibPToT ] - SUCCESS All done!
(base) silab@silab48:~/git/bdaq53/bdaq53/scans$ python calibrate_hitor_ptot.py
2020-10-30 16:40:23,144 [HitorCalibPToT ] - WARNING No explicit configuration supplied for chip 0x0001. Using '/home/silab/git/bdaq53/bdaq53/system/../chips/ITkPixV1_default.cfg.yaml'!
2020-10-30 16:40:23,144 [HitorCalibPToT ] - INFO Loading chip configuration for chip 0x0001 from /home/silab/git/bdaq53/bdaq53/system/../chips/ITkPixV1_default.cfg.yaml
2020-10-30 16:40:23,148 [HitorCalibPToT ] - INFO Found 1 chip(s) of 1 module(s) defined in the testbench
2020-10-30 16:40:23,148 [HitorCalibPToT ] - INFO Initializing HitorCalibPToT...
2020-10-30 16:40:23,149 [Periphery ] - NOTICE Periphery is disabled.
2020-10-30 16:40:23,784 [BDAQ53 ] - SUCCESS Found board BDAQ53 with Displayport running firmware version 1.2
2020-10-30 16:40:23,785 [BDAQ53 ] - INFO Board has 7 Aurora receiver channels
2020-10-30 16:40:23,922 [basil.HL.si570 ] - INFO Changed Si570 reference frequency to 160.0 MHz
2020-10-30 16:40:24,124 [BDAQ53 ] - INFO Aurora receiver(s) running at 640Mb/s
2020-10-30 16:40:24,126 [HitorCalibPToT ] - INFO Initializing chips...
2020-10-30 16:40:24,128 [ITkPixV1 - 0x0001] - INFO Initializing communication...
2020-10-30 16:40:24,139 [ITkPixV1 - 0x0001] - INFO Chip is running at 640Mb/s
2020-10-30 16:40:24,139 [ITkPixV1 - 0x0001] - INFO 1 Aurora lane active
2020-10-30 16:40:25,486 [ITkPixV1 - 0x0001] - SUCCESS Communication established
2020-10-30 16:40:27,938 [HitorCalibPToT ] - INFO Configuring chip 0x0001...
2020-10-30 16:40:30,412 [BDAQ53 ] - INFO LEMO_MUX_TX0 set to 1 (CMD_LOOP_START_PULSE)
2020-10-30 16:40:30,412 [BDAQ53 ] - INFO Configuring TDC modules (0, 1, 2, 3)...
0 32 0 32
10%|█████████████████ | 3648/38400 [01:59<18:55, 30.59 Mask steps/s]
2020-10-30 16:42:29,777 [HitorCalibPToT ] - SUCCESS Scan finished
2020-10-30 16:42:29,786 [ITkPixV1 - 0x0001] - INFO Recording chip status...
2020-10-30 16:42:32,377 [ITkPixV1 - 0x0001] - INFO Mean chip temperature is (1356 +- 6)°C
2020-10-30 16:42:32,413 [ITkPixV1 - 0x0001] - INFO Mean chip temperature is (4095 +- 6)°C
2020-10-30 16:42:32,487 [ITkPixV1 - 0x0001] - INFO Mean chip temperature is (-24 +- 6)°C
2020-10-30 16:42:32,561 [ITkPixV1 - 0x0001] - INFO Mean chip temperature is (34 +- 6)°C
2020-10-30 16:42:32,634 [ITkPixV1 - 0x0001] - INFO Mean chip temperature is (41 +- 6)°C
2020-10-30 16:42:32,743 [HitorCalibPToT ] - INFO Starting analysis for chip_0 (0x0001)
2020-10-30 16:42:32,749 [Analysis ] - INFO Analyzing data...
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 49.5M/49.5M [00:09<00:00, 5.16M Words/s]
2020-10-30 16:42:45,966 [HitorCalibPToT ] - INFO Creating Histograms...
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 12/12 [00:25<00:00, 2.16s/ Scan parameters]
2020-10-30 16:43:11,968 [HitorCalibPToT ] - INFO Interpolation Starting...
2020-10-30 16:43:12,068 [HitorCalibPToT ] - INFO 0 Interpolations out of 1024 failed.
2020-10-30 16:43:19,698 [Plotting ] - INFO Creating selected plots...
2020-10-30 16:43:34,529 [Plotting ] - INFO Closing output PDF file: /home/silab/git/bdaq53/bdaq53/scans/output_data/module_0/chip_0/20201030_164023_hitor_calibration_ptot_interpreted.pdf
2020-10-30 16:43:35,172 [HitorCalibPToT ] - SUCCESS All done!
(base) silab@silab48:~/git/bdaq53/bdaq53/scans$
The problem is that only for scans which end with scan
(see pattern
variable) are loaded(https://gitlab.cern.ch/silab/bdaq53/-/blob/development/bdaq53/utils.py#L121).
This is of course not right for a hitor calibration or a TDAC tuning
Edited by Yannick Manuel Dieter