Example #1
0
File: rax.py Project: badi/rax
def setup_pool(ncores):
    ezpool.setup_pool(ncores)
Example #2
0
import rax
import ezlog
import ezpool

import sys
import os

ezlog.set_level(ezlog.INFO)

mydirname = os.path.dirname(sys.argv[0])
inroot    = os.path.join(mydirname, 'relaxation-data')
nprocs    = 2

ezpool.setup_pool(nprocs)


print 'Loading project from', inroot
project = rax.load_project(inroot, outputfreq=0.5)
# project.set_outputfrequency(0.5) # ns
lengths = project.get_trajectory_lengths()

for r,c,l in lengths:
    print 'RUN', r, 'CLONE', c, l, 'ns'