Skip to content

Commit

Permalink
check for None in ptodis
Browse files Browse the repository at this point in the history
  • Loading branch information
scarlehoff committed May 8, 2024
1 parent d2e6985 commit 81c6221
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pineko/theory.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 81c6221

Please sign in to comment.