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

feat: script qadb-info to dump some info about the QADB #68

Merged
merged 34 commits into from
Jan 17, 2025
Merged
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
479c68a
feat: script `qadb-info` to dump some info about the QADB
c-dilks Jan 13, 2025
5ce2391
feat: add some options
c-dilks Jan 13, 2025
9f59ab4
feat: more options for printing datasets
c-dilks Jan 13, 2025
674f3b9
feat: calculate full runs' charge
c-dilks Jan 13, 2025
9943ea5
fix(ci): wrong dir
c-dilks Jan 13, 2025
8320597
fix: avoid relying on environment var
c-dilks Jan 13, 2025
4cc2d51
fix: version detection
c-dilks Jan 14, 2025
4e40b3c
ci: add `bin/` to `PATH`
c-dilks Jan 14, 2025
2a39373
feat: `TTree` table output
c-dilks Jan 15, 2025
ccc83f1
refactor: generalize so we can add a `misc` command more easily
c-dilks Jan 15, 2025
ea6b124
fix: prepend `$PATH`
c-dilks Jan 15, 2025
4cc2308
fix: don't check for datasets when `Command == 'print'`
c-dilks Jan 15, 2025
9a5d081
fix(ci): use `environ.sh` file to set `PATH`
c-dilks Jan 15, 2025
be36e4a
feat: `misc` command
c-dilks Jan 16, 2025
36f11a6
fix(ci): renamed option
c-dilks Jan 16, 2025
dae2fe5
feat: QA filter logic
c-dilks Jan 16, 2025
d583a0d
fix: porcelain -> simple
c-dilks Jan 16, 2025
2fcdc1a
fix: version detection
c-dilks Jan 16, 2025
9f47d78
fix: nevermind, doesn't work
c-dilks Jan 16, 2025
8f6fb00
fix: `JSON#load_file` -> `#parse` for compatibility with ruby 2.75
c-dilks Jan 16, 2025
f1cd4ed
fix: handle conflicts with `--golden`
c-dilks Jan 16, 2025
e65c58e
style: use '`' in printouts
c-dilks Jan 16, 2025
b68b792
feat: start query command
c-dilks Jan 16, 2025
6dd8e53
feat: lookup bins
c-dilks Jan 16, 2025
7788aa8
fix: check bins existence
c-dilks Jan 16, 2025
09a7ff2
fix: finish implementing `query` command
c-dilks Jan 17, 2025
cbe1370
doc: `qadb-info` guidance
c-dilks Jan 17, 2025
d4212e4
feat: example commands
c-dilks Jan 17, 2025
ff57011
Merge remote-tracking branch 'origin/main' into ls-datasets
c-dilks Jan 17, 2025
e27c978
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 17, 2025
042860f
feat: descriptions for defects
c-dilks Jan 17, 2025
a21dd9e
doc: move the rules away from the how-to part
c-dilks Jan 17, 2025
c33ee07
doc: caution
c-dilks Jan 17, 2025
6c54168
doc: charge
c-dilks Jan 17, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
doc: qadb-info guidance
c-dilks committed Jan 17, 2025
commit cbe1370d1e65cf9afb207e18dde8d309fb26857e
28 changes: 23 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -37,7 +37,9 @@ bits to use in the filter.
> QADB, explaining _why_ the bit was set
> - The analyzer must decide whether or not data with the `Misc` defect bit
> should be excluded from their analysis
> - To help with this decision-making, use `qadb-info misc`
> - To help with this decision-making, use the `qadb-info misc` command, or use the
> [`Misc` summary tables are found in each dataset's directory](#files),
> which provide the comment(s) for each run

<a name="info"></a>
# QA Information
@@ -50,15 +52,31 @@ bits to use in the filter.
> 2. The QADB only provides defect identification and does not provide analysis-specific decisions.
> 3. At least two people independently perform the "manual QA" part of the QA procedure, and the results are cross checked and merged.

<a name="datasets"></a>
## Available Data Sets
## Information from `qadb-info`

The program `qadb-info` may be used to get information about the QADB, including:
- available data sets
- defect bits
- FC charge, filtered by QA defects chosen by the user
- query the QADB by run number, event number, and/or QA bin number

For a list of all the available datasets by name, run
For usage guidance, just run:
```bash
qadb-info
```
If it's not in your path, run `bin/qadb-info` or `$QADB/bin/qadb-info`.

> [!NOTE]
> If `qadb-info` is not found, either:
> - it's at `./bin/qadb-info`, so type the full path to it
> - add `bin/` to your `$PATH`, which you can do with
> ```bash
> source environ.sh # for bash, zsh
> source environ.csh # for csh, tcsh
> ```
<!--`-->

<a name="datasets"></a>
## Available Data Sets
The following tables describe the available data sets in the QADB. The columns are:
- **Pass**: the Pass number of the data set (higher is newer)
- **Data Set Name**: a unique name for the data-taking period; click it to see the corresponding QA timelines