def setup_pool(ncores): ezpool.setup_pool(ncores)
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'