diff --git a/src/particle/particle/convert.py b/src/particle/particle/convert.py index 29eaf187..2f950473 100644 --- a/src/particle/particle/convert.py +++ b/src/particle/particle/convert.py @@ -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): diff --git a/src/particle/pdgid/pdgid.py b/src/particle/pdgid/pdgid.py index d86e7411..03a1ce42 100644 --- a/src/particle/pdgid/pdgid.py +++ b/src/particle/pdgid/pdgid.py @@ -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" + )