#!/usr/local/bin/python2.4

from PointsDeterminer import AmberPointsDeterminer

# for benchmarking AMBER project
pd = AmberPointsDeterminer( server="server@vspmf93",
			projectdir="server2/dan/2170",
			projectconf="server2/dan/2170/project2170.conf",
			core="cores/FahCore_82.exe",
			workdir="dan",
			verbose=True )

# this sets up the project locally
pd.setup()

# this modifies the project files
# change # steps
# change to discard
pd.modify()

# runs MakeAUnit
pd.makeaunit()

# run the core and return time
time = pd.benchmark()
days = time/( 3600. * 24. )

# standard points, deadline
print "Took %f days" % days
deadline = 30 * days * pd.fraction + 2
points = pd.fraction * days * 110
timeout = 20 * days * pd.fraction + 2

print points, deadline, timeout 



