-
Notifications
You must be signed in to change notification settings - Fork 3
/
eco_flow.py
33 lines (27 loc) · 842 Bytes
/
eco_flow.py
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
27
28
29
30
31
32
33
# -*- coding: utf-8 -*-
__author__ = 'IPPM RAS: https://github.com/IDMIPPM/'
import random
import sys
from eco_core import ic
if __name__ == '__main__':
seeds = [125034, 417269]
seed = random.choice(seeds)
random.seed(seed)
if len(sys.argv) == 6:
log = None
F = sys.argv[1]
G = sys.argv[2]
weights = sys.argv[3]
patch_file = sys.argv[4]
out_file = sys.argv[5]
else:
print('Wrong number of parameters: {}'.format(len(sys.argv)))
print('Usage: python eco_flow.py <F.v> <G.v> <weight.txt> <patch.v> <out.v>')
exit()
print('PATHS INFO')
print('F file:', F)
print('G file:', G)
print('weight file:', weights)
print('patch.v file:', patch_file)
print('out.v file:', out_file)
ic(F, G, weights, patch_file, out_file, 1800)