Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support to define constraints to filter run periods #61

Merged
merged 22 commits into from
Nov 8, 2024

Conversation

Vindaar
Copy link
Owner

@Vindaar Vindaar commented Nov 8, 2024

This adds the ability to control how run periods are matched at a finer level. Instead of just relying on run numbers, one can now define constraints based on data stored in the HDF5 files.

In very short:

  • the runPeriod.toml file defines a set of constraints as keys
  • the chipInfo.txt file for each chip in each of these run periods provides the keys and values for these constraints
  • when calibrating data, we look up the matching run period based on the best matching set of constraints

Read the README here:
https://github.com/Vindaar/TimepixAnalysis/tree/addConstraints/resources/ChipCalibrations/Tpx3_Test_Constraints
for detailed instructions.

This is required to keep the DAC information for Tpx3 among others
When using the database tool to add a run period, now includes parsing
the constraints.
Requires the chip group as an argument to the relevant proc calls.
… runPeriod

Still to be finished! Does not look up the run period just now.
Now has the commands:
- add
- calibrate
instead of having everything under a single command. Allows for a
cleaner interface.
@Vindaar Vindaar merged commit 9e8e6ae into master Nov 8, 2024
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant