Skip to content

Commit

Permalink
make modsv test more stringent
Browse files Browse the repository at this point in the history
  • Loading branch information
RoyStegeman committed Nov 22, 2024
1 parent 63bec61 commit 61fd17b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nnpdf_data/nnpdf_data/theory.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,10 @@ def _apply_checks(self):
f"Theory: {self.ID}, error: XIF is {self.XIF} while ModSV is {self.ModSV}. "
"If XIF is equal to 1.0, ModSV should not be defined."
)
elif self.XIF != 1 and self.ModSV is None:
elif self.XIF != 1 and self.ModSV not in ["expanded", "exponentiated"]:
raise TheoryCardError(
f"Theory: {self.ID}, error: XIF is {self.XIF} while ModSV is {self.ModSV}. "
"If XIF is different from 1.0, ModSV should be defined."
"If XIF is different from 1.0, ModSV should be either 'expanded' or 'exponentiated'."
)

if self.DAMP != 0 and "FONLL" in self.FNS:
Expand Down

0 comments on commit 61fd17b

Please sign in to comment.