From 87108f89edb5d2201d3fdf6180a59eae1c99fc31 Mon Sep 17 00:00:00 2001 From: peterkrack Date: Sun, 8 Dec 2024 12:54:16 +0100 Subject: [PATCH] commondata test fail when importing validphys --- .../nnpdf_data/filter_utils/hera_utils.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/nnpdf_data/nnpdf_data/filter_utils/hera_utils.py b/nnpdf_data/nnpdf_data/filter_utils/hera_utils.py index 16ed7fbaa3..e76eaef8f2 100644 --- a/nnpdf_data/nnpdf_data/filter_utils/hera_utils.py +++ b/nnpdf_data/nnpdf_data/filter_utils/hera_utils.py @@ -6,7 +6,7 @@ import pandas as pd from os import PathLike import yaml -from validphys.api import API +#from validphys.api import API @dataclass class commondata: @@ -91,14 +91,14 @@ def write_new_commondata(self, data_filename: str | PathLike, # Subroutines for testing the implementation of the commondata. -# Obtain the covariance matrix for a given variant. -def _covmat(name: str, var: str): - inp = {"dataset_input": {"dataset": name, "variant": var}, "theoryid": 700, "use_cuts": "internal"} - return API.covmat_from_systematics(**inp) - -# Compare the covariance matrices of two different variants. True if close. -def covmat_is_close(name: str, var1: str, var2: str) -> bool: - return np.isclose(_covmat(name,var1),_covmat(name,var2)).all() +## Obtain the covariance matrix for a given variant. +#def _covmat(name: str, var: str): +# inp = {"dataset_input": {"dataset": name, "variant": var}, "theoryid": 700, "use_cuts": "internal"} +# return API.covmat_from_systematics(**inp) +# +## Compare the covariance matrices of two different variants. True if close. +#def covmat_is_close(name: str, var1: str, var2: str) -> bool: +# return np.isclose(_covmat(name,var1),_covmat(name,var2)).all()