Commit a6a14b40 authored by cif2cif's avatar cif2cif
Browse files

Definido FILE_OUTPUT en securegrid-simultor

parent c6577e91
No preview for this file type
......@@ -34,6 +34,7 @@ PV_DATA = 'data/pv_10kw.csv'
PROFILE_FILE = 'data/profiles.data.gz'
GRID_NAME = 'demo_lv_grid'
GRID_FILE = 'data/%s.json' % GRID_NAME
OUTPUT_FILE = 'demo.hdf5'
nAttacks = 10
......@@ -58,6 +59,7 @@ def create_scenario(world):
profile_file=PROFILE_FILE,
grid_name=GRID_NAME).children
print("Houses ".join(map(str, houses)))
pvs = pvsim.PV.create(20)
attacks = attacksim.Attack.create(nAttacks, target_attr='P_out')
......@@ -83,7 +85,7 @@ def create_scenario(world):
# Database
db = world.start('DB', step_size=60, duration=END)
hdf5 = db.Database(filename='demo.hdf5')
hdf5 = db.Database(filename=OUTPUT_FILE)
connect_many_to_one(world, houses, hdf5, 'P_out')
connect_many_to_one(world, pvs, hdf5, 'P')
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment