diff --git a/src/bio_datasets/structure/residue.py b/src/bio_datasets/structure/residue.py index 15e17aa..be31f65 100644 --- a/src/bio_datasets/structure/residue.py +++ b/src/bio_datasets/structure/residue.py @@ -327,7 +327,8 @@ def keep_res(res_name): keep_hydrogens or res_name not in ["H", "D", "D8U"] ) res_filter = res_filter and ( - res_name in chem_component_3to1 and res_name in chem_component_categories + res_name in chem_component_3to1 + and res_name in chem_component_categories ) return res_filter