From 81c6221320ec078f18123dbfe5e88ea0fffcb576 Mon Sep 17 00:00:00 2001 From: juacrumar Date: Mon, 6 May 2024 18:25:57 +0200 Subject: [PATCH] check for None in ptodis --- src/pineko/theory.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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