Skip to content

Commit

Permalink
Fix condition to new damping convention
Browse files Browse the repository at this point in the history
  • Loading branch information
felixhekhorn committed Dec 4, 2023
1 parent 68c41e7 commit b131ba5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ repos:
hooks:
- id: pycln
args: [--config=pyproject.toml]
- repo: https://github.com/psf/black
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 23.11.0
hooks:
- id: black
Expand Down
2 changes: 1 addition & 1 deletion src/pineko/fonll.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,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 b131ba5

Please sign in to comment.