diff --git a/src/pineko/theory.py b/src/pineko/theory.py index 619916ab..0b646c37 100644 --- a/src/pineko/theory.py +++ b/src/pineko/theory.py @@ -389,7 +389,7 @@ def fk(self, name, grid_path, tcard, pdf): # PTODIS, thus using PTO instead of PTODIS to establish the perturbative # order would result in the PTODIS terms that correspond to orders # beyond PTO to be neglected - if "PTODIS" in tcard and "FONLL" in tcard["FNS"]: + if "FONLL" in tcard["FNS"] and tcard.get("PTODIS") is not None: tcard["PTO"] = tcard["PTODIS"] # check if grid contains SV if theory is requesting them (in particular