-
Notifications
You must be signed in to change notification settings - Fork 1
/
run_OCPP.py
27 lines (20 loc) · 896 Bytes
/
run_OCPP.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
#region Import statements
import sys
import numpy as np
import my_impedance_funcs as imp
import my_heatmapSetup_funcs as hm
import my_process_funcs as prc # new
import my_configVis_funcs as vis
import pickle
#endregion
cfg1 = ['bus_300', 'bus_197', 'bus_104', 'bus_108', 'bus_106'] # bad config 1, cluster in one portion of feeder
def exp5(v):
parmObj=hm.configParms()
parmObj.set_version(1) # 1 for PBC
seedkey=4 # you choose, so that each call to place_max_act results in same random seq
select='commonNodeZ' # choose 'commonNodeZ' or 'rdm'
cfg7=prc.place_max_coloc_acts_v2(parmObj, seedkey, v.feeder, v.node_index_map, v.substation_name, v.depths, v.file_name, v.Vbase_ll,
v.Sbase,select)
with open('exp5_7.4_seed'+str(seedkey)+'_'+str(select)+'.pkl', 'wb') as f: # Python 3: open(..., 'wb')
pickle.dump(cfg7, f)
return