Skip to content

Commit

Permalink
Adjust damping conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
felixhekhorn committed Dec 4, 2023
1 parent 8204c5c commit 643313b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion benchmarks/bench_fonll.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import numpy as np
import pytest
import yaml

Expand Down
4 changes: 2 additions & 2 deletions src/pineko/fonll.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def produce_combined_fk(
fk_dict = fonll_info.fks
dampings = (
None
if damp[0] == -1
if damp[0] < 0
else produce_dampings(theorycard_constituent_fks, fonll_info, damp[1], damp[2])
)
combined_fk = combine(fk_dict, dampings=dampings)
Expand Down Expand Up @@ -239,7 +239,7 @@ def collect_updates(fonll_fns, damp):
"""Produce the different theory cards according to which FONLL is asked for."""
updates = []
is_mixed = fonll_fns in MIXED_ORDER_FNS
is_damped = damp >= 0
is_damped = damp > 0
base_pto = FNS_BASE_PTO[fonll_fns]
cfgs = MIXED_FNS_CONFIG if is_mixed or is_damped else FNS_CONFIG
for cfg in cfgs:
Expand Down

0 comments on commit 643313b

Please sign in to comment.