From ad596f465c20eb6e9aab1bb6bced91855a703c30 Mon Sep 17 00:00:00 2001 From: giacomomagni Date: Thu, 7 Nov 2024 11:14:41 +0100 Subject: [PATCH] fix CKM as list --- src/yadism/coefficient_functions/coupling_constants.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/yadism/coefficient_functions/coupling_constants.py b/src/yadism/coefficient_functions/coupling_constants.py index ec62e51c..6ba40fdd 100644 --- a/src/yadism/coefficient_functions/coupling_constants.py +++ b/src/yadism/coefficient_functions/coupling_constants.py @@ -415,6 +415,8 @@ def from_dict(cls, theory, observables): ckm_matrix = theory["CKM"] if isinstance(ckm_matrix, str): ckm_matrix = CKM2Matrix.from_str(ckm_matrix) + elif isinstance(ckm_matrix, list): + ckm_matrix = CKM2Matrix(np.array([ckm_matrix]) ** 2) theory_config = { "MZ2": theory.get("MZ", 91.1876) ** 2, # TODO remove defaults to the PDG2020 value