Skip to content

Commit

Permalink
run pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
RoyStegeman committed Dec 1, 2023
1 parent c8cf6f3 commit 4322c2f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/pineko/cli/fonll.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 6 additions & 2 deletions src/pineko/fonll.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,12 @@ def update_fk_theorycard(combined_fk, input_theorycard_path):

def produce_dampings(theorycard_constituent_fks, fonll_info, damp):
"""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
Expand Down

0 comments on commit 4322c2f

Please sign in to comment.