forked from ICEACE/PopGUI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpopcmdline.py
More file actions
26 lines (24 loc) · 710 Bytes
/
popcmdline.py
File metadata and controls
26 lines (24 loc) · 710 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/python
"""
Experiment manager Library for EURACE
Author: Mehmet Gencer, mgencer@cs.bilgi.edu.tr
Bulent Ozel, bulent.ozel@gmail.com, Reykjavik University
"""
import sys,pickle
from poplib import *
if __name__=="__main__":
try:
setDebugValue(1)
except:setDebug(1)
try:
popfile=sys.argv[1]
zerofile=sys.argv[2]
except:
print "usage:\n %s popfile 0.xml"%sys.argv[0]
sys.exit()
pop=pickle.load(open(popfile,"rb"))
globalSetNumRegions(pop.numregions)
global popguinumregions
popguinumregions=pop.numregions
pop.instantiate(open(zerofile,"w"))
print "POPULATION IS SUCCESSFULLY CREATED IN ",zerofile