diff --git a/src/pineko/cli/fonll.py b/src/pineko/cli/fonll.py index 04939362..58d45dfe 100644 --- a/src/pineko/cli/fonll.py +++ b/src/pineko/cli/fonll.py @@ -121,7 +121,9 @@ def subcommand( tcard = theory_card.load(theoryid) if tcard["DAMP"] != 0: if not "DAMPPOWERc" in tcard or not "DAMPPOWERb" in tcard: - raise InconsistentInputsError("If DAMP is set, set also DAMPPOWERb and DAMPPOWERc") + raise InconsistentInputsError( + "If DAMP is set, set also DAMPPOWERb and DAMPPOWERc" + ) else: tcard["DAMPPOWERb"] = None tcard["DAMPPOWERc"] = None diff --git a/src/pineko/fonll.py b/src/pineko/fonll.py index 264bdf51..82a07c7f 100644 --- a/src/pineko/fonll.py +++ b/src/pineko/fonll.py @@ -120,8 +120,12 @@ def update_fk_theorycard(combined_fk, input_theorycard_path): def produce_dampings(theorycard_constituent_fks, fonll_info, damppowerc, damppowerb): """Return the damping factors for each of the relevant masses.""" - cmatching2 = (theorycard_constituent_fks["kcThr"] * theorycard_constituent_fks["mc"]) **2 - bmatching2 = (theorycard_constituent_fks["kbThr"] * theorycard_constituent_fks["mb"]) **2 + cmatching2 = ( + theorycard_constituent_fks["kcThr"] * theorycard_constituent_fks["mc"] + ) ** 2 + bmatching2 = ( + theorycard_constituent_fks["kbThr"] * theorycard_constituent_fks["mb"] + ) ** 2 q2grid = fonll_info.Q2grid step_function_charm = cmatching2 < q2grid step_function_bottom = bmatching2 < q2grid