From 3165af6cc148192d3ca1ef75d4221ec0d2d0898c Mon Sep 17 00:00:00 2001 From: juacrumar Date: Tue, 7 May 2024 10:56:45 +0200 Subject: [PATCH] change error to warning for old theories --- nnpdf_data/nnpdf_data/theory.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/nnpdf_data/nnpdf_data/theory.py b/nnpdf_data/nnpdf_data/theory.py index 9d5e636410..b18c43b3f3 100644 --- a/nnpdf_data/nnpdf_data/theory.py +++ b/nnpdf_data/nnpdf_data/theory.py @@ -110,13 +110,9 @@ def _apply_checks(self): if self.DAMP != 0 and "FONLL" in self.FNS: # Check the damp powers are being used if self.DAMPPOWERb is None: - raise TheoryCardError( - "DAMPOWERb key needs to be given when DAMP and FONLL are used" - ) + self._raise_or_warn("DAMPOWERb key needs to be given when DAMP and FONLL are used") if self.DAMPPOWERc is None and self.IC == 0: - raise TheoryCardError( - "DAMPOWERc key needs to be given when DAMP and FONLL are used" - ) + self._raise_or_warn("DAMPOWERc key needs to be given when DAMP and FONLL are used") def find_nf(self, mu): """Given a value of q, find the corresponding number of flavours