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
Branches
Tags
No related merge requests found
...@@ -284,8 +284,8 @@ def _LoadLigand(file): ...@@ -284,8 +284,8 @@ def _LoadLigand(file):
Load a single ligand from file names. Return an entity. Load a single ligand from file names. Return an entity.
""" """
ligand_ent = ost.io.LoadEntity(file, format="sdf") ligand_ent = ost.io.LoadEntity(file, format="sdf")
ligand_ent.Select("ele != H") ligand_view = ligand_ent.Select("ele != H")
return ligand_ent.Copy() return ost.mol.CreateEntityFromView(ligand_view, False)
def _Validate(structure, ligands, legend, fault_tolerant=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.
Please register or to comment