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 Jan 13, 2025
1 parent 38d8dd1 commit 7601ef7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/particle/particle/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,9 +323,9 @@ def get_from_pdg_mcd(filename: StringOrIO) -> pd.DataFrame:
)
if nar[duplicated_ids].shape[0] > 0:
print("DUPLICATES:\n", nar[duplicated_ids])
assert (
nar[duplicated_ids].shape[0] == 0
), f"Duplicate entries found in {filename} !"
assert nar[duplicated_ids].shape[0] == 0, (
f"Duplicate entries found in {filename} !"
)

ds_list = []
for i in range(4):
Expand Down
6 changes: 3 additions & 3 deletions src/particle/pdgid/pdgid.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,6 @@ def info(self) -> str:

# Verify the PDGID class has all relevant functions defined in the pdgid.functions module
for _n in _fnames:
assert _n in dir(
PDGID
), f"{_n} missing from PDGID class! Update the list in pdgid.py"
assert _n in dir(PDGID), (
f"{_n} missing from PDGID class! Update the list in pdgid.py"
)

0 comments on commit 7601ef7

Please sign in to comment.