Skip to content

Commit

Permalink
Merge pull request #1 from pgrinaway/new-driver
Browse files Browse the repository at this point in the history
Driver fixes
  • Loading branch information
pgrinaway committed May 15, 2014
2 parents af5a955 + 2a9d587 commit 4af48e7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions yank/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
import yank
import sys
import numpy
import simtk.openmm as openmm
import simtk.unit as units
import os

#=============================================================================================
# DRIVER
Expand Down Expand Up @@ -221,7 +224,7 @@ def driver():
constraints = app.HBonds
removeCMMotion = False

# Create System objects for ligand and receptor.

ligand_system = app.AmberPrmtopFile(options.ligand_prmtop_filename).createSystem(nonbondedMethod=nonbondedMethod, implicitSolvent=implicitSolvent, constraints=constraints, removeCMMotion=removeCMMotion)
receptor_system = app.AmberPrmtopFile(options.receptor_prmtop_filename).createSystem(nonbondedMethod=nonbondedMethod, implicitSolvent=implicitSolvent, constraints=constraints, removeCMMotion=removeCMMotion)
complex_system = app.AmberPrmtopFile(options.complex_prmtop_filename).createSystem(nonbondedMethod=nonbondedMethod, implicitSolvent=implicitSolvent, constraints=constraints, removeCMMotion=removeCMMotion)
Expand Down Expand Up @@ -277,7 +280,7 @@ def driver():

# Initialize YANK object.
from yank import Yank
yank = Yank(receptor=receptor_system, ligand=ligand_system, complex=complex_system, complex_coordinates=complex_coordinates, output_directory=options.output_directory, verbose=options.verbose)
yank = Yank(receptor=receptor_system, ligand=ligand_system, complex=complex_system, complex_positions=complex_coordinates, output_directory=options.output_directory, verbose=options.verbose)

# Configure YANK object with command-line parameter overrides.
if options.niterations is not None:
Expand Down

0 comments on commit 4af48e7

Please sign in to comment.