Skip to content
Snippets Groups Projects
Unverified Commit 8513fb4d authored by Xavier Robin's avatar Xavier Robin
Browse files

fix: SCHWED-5481 actually remove hydrogens

parent 09f0677c
No related branches found
No related tags found
No related merge requests found
......@@ -284,8 +284,8 @@ def _LoadLigand(file):
Load a single ligand from file names. Return an entity.
"""
ligand_ent = ost.io.LoadEntity(file, format="sdf")
ligand_ent.Select("ele != H")
return ligand_ent.Copy()
ligand_view = ligand_ent.Select("ele != H")
return ost.mol.CreateEntityFromView(ligand_view, False)
def _Validate(structure, ligands, legend, fault_tolerant=False):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment