summaryrefslogtreecommitdiff
path: root/SA_POP/utils/SANetGenerator/EUNets.py
blob: 8c4ae50b1825fde1ec99eca8b462a7ef1df3168e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#Daniel L.C. Mack
#EUNets.py
#Runs the Net_Complete Script with a set of params for a certain number of runs.
#Nnets takes the number of networks to make, the rest of the params are from
#The Net Complete Script

import os
import sys

Nnets = int(sys.argv[1])

Ntasks = sys.argv[2]
Nconds = sys.argv[3]
inDegree = sys.argv[4]
outDegree = sys.argv[5]
rGen = sys.argv[6]
outname = sys.argv[7]

for each in range(0,Nnets):
	nname = outname + str(each)
	os.system("python Net_Complete.py " + Ntasks + " " + Nconds + " " + inDegree + " " + outDegree + " " + rGen + " " + nname)