Skip to content

Commit

Permalink
style: pre-commit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Aug 19, 2024
1 parent 4e86dcf commit 66883ae
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions src/decaylanguage/dec/dec.py
Original file line number Diff line number Diff line change
Expand Up @@ -934,8 +934,7 @@ def print_decay_modes(
"" if model_params_list == [] else " ".join(model_params_list)
)
decay_chain: str = " ".join(list(dmdict["fs"])) # type: ignore[arg-type]
if len(decay_chain) > max_length:
max_length = len(decay_chain)
max_length = max(len(decay_chain), max_length)
ls.append((dmdict["bf"], decay_chain, dmdict["model"], model_params))

# Sort decays by decreasing BF
Expand Down
4 changes: 2 additions & 2 deletions tests/decay/test_decay.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,15 +245,15 @@ def test_DecayMode_number_of_final_states():
assert len(dm) == 4


@pytest.fixture()
@pytest.fixture
def dc():
dm1 = DecayMode(0.0124, "K_S0 pi0", model="PHSP")
dm2 = DecayMode(0.692, "pi+ pi-")
dm3 = DecayMode(0.98823, "gamma gamma")
return DecayChain("D0", {"D0": dm1, "K_S0": dm2, "pi0": dm3})


@pytest.fixture()
@pytest.fixture
def dc2():
dm1 = DecayMode(0.6770, "D0 pi+")
dm2 = DecayMode(0.0124, "K_S0 pi0")
Expand Down
2 changes: 1 addition & 1 deletion tests/test_dec_full.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def particle(self, items):
return str(label)


@pytest.mark.skip()
@pytest.mark.skip
def test_dec_full():
txt = data.basepath.joinpath("DECAY_LHCB.DEC").read_text()
grammar = data.basepath.joinpath("decfile.lark").read_text()
Expand Down

0 comments on commit 66883ae

Please sign in to comment.