Skip to content

Commit

Permalink
make the CKM matrix into a string for yadism
Browse files Browse the repository at this point in the history
  • Loading branch information
scarlehoff committed Nov 15, 2024
1 parent cc8bd58 commit 25a9336
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/pinefarm/external/yad.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,14 @@ class Yadism(interface.External):
kind = "DIS"

def __init__(self, pinecard, theorycard, *args, **kwargs):
# Create a copy of the theorycard since we might modify some values
theorycard = dict(theorycard)

# Default to including scale information unless explicitly avoided
theorycard.setdefault("FactScaleVar", True)
theorycard.setdefault("RenScaleVar", True)
if isinstance(theorycard["CKM"], list):
theorycard["CKM"] = " ".join(str(i) for i in theorycard["CKM"])

super().__init__(pinecard, theorycard, *args, **kwargs)

Expand Down

0 comments on commit 25a9336

Please sign in to comment.