Skip to content
Snippets Groups Projects

Allow fitting with perturbative charm (or any other basis)

Merged Emanuele Roberto Nocera requested to merge pertur_c into master
1 file
+ 10
5
Compare changes
  • Side-by-side
  • Inline
@@ -151,11 +151,16 @@ def test_novalidation(tmp_path, timing=30):
def test_weirdbasis(tmp_path, timing=30):
""" Runs a runcard with perturbative charm, success is assumed if it doesn't crash in 30 seconds
Checks that the code runs when it needs to rotate the output of the NN to the NN31IC basis
"""
""" Runs a runcard with perturbative charm basis but an intrinsic charm theory
so the run will be stopped by the checks """
# Once we have a light theory with perturbative charm for testing, this test can be enabled
# to do the commented docstring
# """ Runs a runcard with perturbative charm, success is assumed if it doesn't crash in 30 seconds
# Checks that the code runs when it needs to rotate the output of the NN to the NN31IC basis
# """
quickcard = f"pc-{QUICKNAME}.yml"
quickpath = REGRESSION_FOLDER / quickcard
shutil.copy(quickpath, tmp_path)
with pytest.raises(sp.TimeoutExpired):
sp.run(f"{EXE} {quickcard} {REPLICA}".split(), cwd=tmp_path, timeout=timing)
# with pytest.raises(sp.TimeoutExpired):
with pytest.raises(sp.CalledProcessError):
sp.run(f"{EXE} {quickcard} {REPLICA}".split(), cwd=tmp_path, timeout=timing, check=True)
Loading