'data', 'runlog file') Analysis.Config.get(
Run
run module that handles the files and information of a single run
load_runlog
load_runlog (p:pathlib.Path)
Loads runlog.json creating it if it does not exist
Type | Details | |
---|---|---|
p | Path | path the runlog.json |
load_nrs
load_nrs (p:pathlib.Path)
returns list of runs in runlog.json with either no status or green
= good run
status
Type | Details | |
---|---|---|
p | Path | Path to json runlog |
Returns | list |
init_batch
init_batch (name, dut, beam_test:HighResAnalysis.src.analysis.BeamTest, log=None)
load_batches
load_batches (bt:HighResAnalysis.src.analysis.BeamTest, redo=False)
unify batches from run logs and custom batches and save them in a tmp file.
Batch
Batch (name:str, dut_nr:int, beam_test:HighResAnalysis.src.analysis.BeamTest, log=None)
class containing the run infos of a single batch.
Type | Default | Details | |
---|---|---|---|
name | str | Name of the batch | |
dut_nr | int | DUT number | |
beam_test | BeamTest | Structure containing BeamTest info |
|
log | NoneType | None | Runlog in JSON string format |
DUTBatch
DUTBatch (name:str, beam_test:HighResAnalysis.src.analysis.BeamTest, log:pathlib.Path=None)
extension of batch class for a single DUT (for runs with mismatching duts).
Type | Default | Details | |
---|---|---|---|
name | str | Name of the batch | |
beam_test | BeamTest | BeamTest info | |
log | Path | None | Path to the runlog.json |
Run
Run (run_number:str, dut_number:int, tc_dir:pathlib.Path, log:pathlib.Path=None)
Run class containing all the information for a single run from the tree and the json file.
Type | Default | Details | |
---|---|---|---|
run_number | str | Run number | |
dut_number | int | Dut Number | |
tc_dir | Path | Path to the data for the test beam | |
log | Path | None | Path to runlog.json |
Ensemble
Ensemble (name:str)
General enseble class for runs and batches.
Type | Details | |
---|---|---|
name | str |
main
main (a:, alle:, b:str='1a')
Type | Default | Details | |
---|---|---|---|
a | show all | ||
alle | |||
b | str | 1a | batch name |