Molecule.from_polymer_pdb
throws warning and error when multiple polymers are present
#2010
Labels
Molecule.from_polymer_pdb
throws warning and error when multiple polymers are present
#2010
Describe the bug
I can load a PDB file containing multiple proteins/polymers fine with
Topology.from_pdb
. When loading it withMoleucle.from_polymer_pdb
, I'm first given a warning that something passed tofrom_rdkit
has multiple components, which is supported but not supposed to be, and then later this bubbles up as an error. This is pretty confusing becausefrom_rdkit
Molecule.from_pdb_and_smiles
, which itself is deprecatedTo Reproduce
This defeats the purpose, but is possible and feels like it shouldn't be:
Additional context
This also causes some bloat in the test output, since the test for the error runs into the warning first.
The text was updated successfully, but these errors were encountered: