Skip to content

Commit

Permalink
Update test_protein_ligand_prep.py
Browse files Browse the repository at this point in the history
  • Loading branch information
talagayev authored Nov 1, 2023
1 parent d0bc749 commit fd6e170
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion openmmdl/tests/openmmdl_simulation/test_protein_ligand_prep.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,18 @@ def test_prepare_ligand():
# Add more test cases as needed
])

def test_rdkit_to_openmm(rdkit_mol, name, expected_num_atoms):
def test_rdkit_to_openmm():
# Call the conversion function
rdkit_mol_supplier = Chem.SDMolSupplier(TEST_LIGAND_FILE, sanitize=False)
rdkit_mol = None # Initialize the variable
for mol in rdkit_mol_supplier:
if mol is not None: # Ensure the molecule is not None
rdkit_mol = mol # Assign the molecule to rdkit_mol
name="CVV"


omm_molecule = rdkit_to_openmm(rdkit_mol, name)


# Check if the result is an OpenMM Modeller
assert isinstance(omm_molecule, app.Modeller)
Expand Down

0 comments on commit fd6e170

Please sign in to comment.