diff --git a/actions/ost-compare-ligand-structures b/actions/ost-compare-ligand-structures index fc197d71a20d0d41f14fca019119c952b9292eec..ee7575218cf7638617f91c89a07870463f1fcb7f 100644 --- a/actions/ost-compare-ligand-structures +++ b/actions/ost-compare-ligand-structures @@ -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):