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

Fix typo in path for test_make_1d_quad_plots.py #410

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
11 changes: 10 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ jobs:
- name: Pytest setup
run: |
conda install -y -n coffea-env -c conda-forge pytest pytest-cov root_base
mkdir histos
mkdir cards

- name: Test make 1d quad plots
run: |
Expand Down Expand Up @@ -144,3 +144,12 @@ jobs:
flags: unittests
name: codecov-umbrella
verbose: true

- name: Archive production artifacts
uses: actions/upload-artifact@v4
with:
name: results
path: |
tmp_quad_plos*/
cards
analysis/topeft_run2/histos
4 changes: 2 additions & 2 deletions tests/test_futures.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def test_datacardmaker():
"analysis/topeft_run2/make_cards.py",
"analysis/topeft_run2/histos/output_check_yields_nonprompt.pkl.gz",
"-d",
"histos",
"cards",
"--var-lst",
"lj0pt",
"--do-nuisance",
Expand All @@ -48,4 +48,4 @@ def test_datacardmaker():
# Run datacard maker
subprocess.run(args, check=True)

assert (comp_datacard('histos/ttx_multileptons-2lss_p_4j_lj0pt.txt','analysis/topeft_run2/test/ttx_multileptons-2lss_p_4j_lj0pt.txt'))
assert (comp_datacard('cards/ttx_multileptons-2lss_p_4j_lj0pt.txt','analysis/topeft_run2/test/ttx_multileptons-2lss_p_4j_lj0pt.txt'))
4 changes: 2 additions & 2 deletions tests/test_make_1d_quad_plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ def test_make_1d_quad_plots():
"python",
"analysis/topeft_run2/make_1d_quad_plots.py",
"-i",
"ttHJet_UL17_R1B14_NAOD-00000_10194.root",
"ttHJet_UL17_R1B14_NAOD-00000_10194_NDSkim.root",
"-r",
"./"
]

# Run make_1d_quad
subprocess.run(args)
assert subprocess.run(args)

glob.glob('tmp_quad_plos*')
Loading