Commit 5046d686 authored by Winstead, Christopher's avatar Winstead, Christopher
Browse files

fixed some path issues

parent a7691b74
{"inputs": {"CoolSched130": {"topic": "setp/building130", "field": "schedule", "type": "schedule", "name": "OfficeSmall CLGSETP_SCH_NO_OPTIMUM4"}, "CoolSched129": {"topic": "setp/building129", "field": "schedule", "type": "schedule", "name": "OfficeSmall CLGSETP_SCH_NO_OPTIMUM3"}, "CoolSched128": {"topic": "setp/building128", "field": "schedule", "type": "schedule", "name": "OfficeSmall CLGSETP_SCH_NO_OPTIMUM2"}, "CoolSched127": {"topic": "setp/building127", "field": "schedule", "type": "schedule", "name": "OfficeSmall CLGSETP_SCH_NO_OPTIMUM1"}}, "properties": {"bcvtb_home": "/home/evw/workspace/Code/PBC-Eplus/volttron-energyplus/50Buildings/bcvtb", "model": "/home/evw/workspace/Code/PBC-Eplus/volttron-energyplus/50Buildings/buildings/49977_final.idf/49977_final.idf", "weather": "/home/evw/workspace/Code/PBC-Eplus/weather/USA_TN_Chattanooga.723240_TMY2.epw", "identity": "platform.actuator44"}, "outputs": {"zoneTemp127": {"topic": "temps/building127", "field": "temp", "meta": {"units": "C", "type": "float", "tz": "UTC"}, "type": "Zone Air Temperature", "name": "Space 0 ZN"}, "zoneTemp128": {"topic": "temps/building128", "field": "temp", "meta": {"units": "C", "type": "float", "tz": "UTC"}, "type": "Zone Air Temperature", "name": "Space 1 ZN"}, "zoneTemp129": {"topic": "temps/building129", "field": "temp", "meta": {"units": "C", "type": "float", "tz": "UTC"}, "type": "Zone Air Temperature", "name": "Space 2 ZN"}, "zoneTemp130": {"topic": "temps/building130", "field": "temp", "meta": {"units": "C", "type": "float", "tz": "UTC"}, "type": "Zone Air Temperature", "name": "Space 3 ZN"}}}
\ No newline at end of file
{"inputs": {"CoolSched130": {"topic": "setp/building130", "field": "schedule", "type": "schedule", "name": "OfficeSmall CLGSETP_SCH_NO_OPTIMUM4"}, "CoolSched129": {"topic": "setp/building129", "field": "schedule", "type": "schedule", "name": "OfficeSmall CLGSETP_SCH_NO_OPTIMUM3"}, "CoolSched128": {"topic": "setp/building128", "field": "schedule", "type": "schedule", "name": "OfficeSmall CLGSETP_SCH_NO_OPTIMUM2"}, "CoolSched127": {"topic": "setp/building127", "field": "schedule", "type": "schedule", "name": "OfficeSmall CLGSETP_SCH_NO_OPTIMUM1"}}, "properties": {"bcvtb_home": "./bcvtb", "model": "./buildings/49977_final.idf/49977_final.idf", "weather": "./weather/USA_TN_Chattanooga.723240_TMY2.epw", "identity": "platform.actuator44"}, "outputs": {"zoneTemp127": {"topic": "temps/building127", "field": "temp", "meta": {"units": "C", "type": "float", "tz": "UTC"}, "type": "Zone Air Temperature", "name": "Space 0 ZN"}, "zoneTemp128": {"topic": "temps/building128", "field": "temp", "meta": {"units": "C", "type": "float", "tz": "UTC"}, "type": "Zone Air Temperature", "name": "Space 1 ZN"}, "zoneTemp129": {"topic": "temps/building129", "field": "temp", "meta": {"units": "C", "type": "float", "tz": "UTC"}, "type": "Zone Air Temperature", "name": "Space 2 ZN"}, "zoneTemp130": {"topic": "temps/building130", "field": "temp", "meta": {"units": "C", "type": "float", "tz": "UTC"}, "type": "Zone Air Temperature", "name": "Space 3 ZN"}}}
\ No newline at end of file
{"inputs": {"CoolSched70": {"topic": "setp/building70", "field": "schedule", "type": "schedule", "name": "OfficeMedium CLGSETP_SCH_NO_OPTIMUM3"}, "CoolSched71": {"topic": "setp/building71", "field": "schedule", "type": "schedule", "name": "OfficeMedium CLGSETP_SCH_NO_OPTIMUM4"}, "CoolSched69": {"topic": "setp/building69", "field": "schedule", "type": "schedule", "name": "OfficeMedium CLGSETP_SCH_NO_OPTIMUM2"}, "CoolSched68": {"topic": "setp/building68", "field": "schedule", "type": "schedule", "name": "OfficeMedium CLGSETP_SCH_NO_OPTIMUM1"}}, "properties": {"bcvtb_home": "/home/evw/workspace/Code/PBC-Eplus/volttron-energyplus/50Buildings/bcvtb", "model": "/home/evw/workspace/Code/PBC-Eplus/volttron-energyplus/50Buildings/buildings/49980_final.idf/49980_final.idf", "weather": "/home/evw/workspace/Code/PBC-Eplus/weather/USA_TN_Chattanooga.723240_TMY2.epw", "identity": "platform.actuator24"}, "outputs": {"zoneTemp71": {"topic": "temps/building71", "field": "temp", "meta": {"units": "C", "type": "float", "tz": "UTC"}, "type": "Zone Air Temperature", "name": "Space 3 ZN"}, "zoneTemp70": {"topic": "temps/building70", "field": "temp", "meta": {"units": "C", "type": "float", "tz": "UTC"}, "type": "Zone Air Temperature", "name": "Space 2 ZN"}, "zoneTemp68": {"topic": "temps/building68", "field": "temp", "meta": {"units": "C", "type": "float", "tz": "UTC"}, "type": "Zone Air Temperature", "name": "Space 0 ZN"}, "zoneTemp69": {"topic": "temps/building69", "field": "temp", "meta": {"units": "C", "type": "float", "tz": "UTC"}, "type": "Zone Air Temperature", "name": "Space 1 ZN"}}}
\ No newline at end of file
{"inputs": {"CoolSched70": {"topic": "setp/building70", "field": "schedule", "type": "schedule", "name": "OfficeMedium CLGSETP_SCH_NO_OPTIMUM3"}, "CoolSched71": {"topic": "setp/building71", "field": "schedule", "type": "schedule", "name": "OfficeMedium CLGSETP_SCH_NO_OPTIMUM4"}, "CoolSched69": {"topic": "setp/building69", "field": "schedule", "type": "schedule", "name": "OfficeMedium CLGSETP_SCH_NO_OPTIMUM2"}, "CoolSched68": {"topic": "setp/building68", "field": "schedule", "type": "schedule", "name": "OfficeMedium CLGSETP_SCH_NO_OPTIMUM1"}}, "properties": {"bcvtb_home": "./bcvtb", "model": "./buildings/49980_final.idf/49980_final.idf", "weather": "./weather/USA_TN_Chattanooga.723240_TMY2.epw", "identity": "platform.actuator24"}, "outputs": {"zoneTemp71": {"topic": "temps/building71", "field": "temp", "meta": {"units": "C", "type": "float", "tz": "UTC"}, "type": "Zone Air Temperature", "name": "Space 3 ZN"}, "zoneTemp70": {"topic": "temps/building70", "field": "temp", "meta": {"units": "C", "type": "float", "tz": "UTC"}, "type": "Zone Air Temperature", "name": "Space 2 ZN"}, "zoneTemp68": {"topic": "temps/building68", "field": "temp", "meta": {"units": "C", "type": "float", "tz": "UTC"}, "type": "Zone Air Temperature", "name": "Space 0 ZN"}, "zoneTemp69": {"topic": "temps/building69", "field": "temp", "meta": {"units": "C", "type": "float", "tz": "UTC"}, "type": "Zone Air Temperature", "name": "Space 1 ZN"}}}
\ No newline at end of file
{"inputs": {"CoolSched101": {"topic": "setp/building101", "field": "schedule", "type": "schedule", "name": "OfficeMedium CLGSETP_SCH_NO_OPTIMUM2"}, "CoolSched100": {"topic": "setp/building100", "field": "schedule", "type": "schedule", "name": "OfficeMedium CLGSETP_SCH_NO_OPTIMUM1"}, "CoolSched102": {"topic": "setp/building102", "field": "schedule", "type": "schedule", "name": "OfficeMedium CLGSETP_SCH_NO_OPTIMUM3"}}, "properties": {"bcvtb_home": "/home/evw/workspace/Code/PBC-Eplus/volttron-energyplus/50Buildings/bcvtb", "model": "/home/evw/workspace/Code/PBC-Eplus/volttron-energyplus/50Buildings/buildings/49981_final.idf/49981_final.idf", "weather": "/home/evw/workspace/Code/PBC-Eplus/weather/USA_TN_Chattanooga.723240_TMY2.epw", "identity": "platform.actuator35"}, "outputs": {"zoneTemp102": {"topic": "temps/building102", "field": "temp", "meta": {"units": "C", "type": "float", "tz": "UTC"}, "type": "Zone Air Temperature", "name": "Space 2 ZN"}, "zoneTemp100": {"topic": "temps/building100", "field": "temp", "meta": {"units": "C", "type": "float", "tz": "UTC"}, "type": "Zone Air Temperature", "name": "Space 0 ZN"}, "zoneTemp101": {"topic": "temps/building101", "field": "temp", "meta": {"units": "C", "type": "float", "tz": "UTC"}, "type": "Zone Air Temperature", "name": "Space 1 ZN"}}}
\ No newline at end of file
{"inputs": {"CoolSched101": {"topic": "setp/building101", "field": "schedule", "type": "schedule", "name": "OfficeMedium CLGSETP_SCH_NO_OPTIMUM2"}, "CoolSched100": {"topic": "setp/building100", "field": "schedule", "type": "schedule", "name": "OfficeMedium CLGSETP_SCH_NO_OPTIMUM1"}, "CoolSched102": {"topic": "setp/building102", "field": "schedule", "type": "schedule", "name": "OfficeMedium CLGSETP_SCH_NO_OPTIMUM3"}}, "properties": {"bcvtb_home": "./bcvtb", "model": "./buildings/49981_final.idf/49981_final.idf", "weather": "./weather/USA_TN_Chattanooga.723240_TMY2.epw", "identity": "platform.actuator35"}, "outputs": {"zoneTemp102": {"topic": "temps/building102", "field": "temp", "meta": {"units": "C", "type": "float", "tz": "UTC"}, "type": "Zone Air Temperature", "name": "Space 2 ZN"}, "zoneTemp100": {"topic": "temps/building100", "field": "temp", "meta": {"units": "C", "type": "float", "tz": "UTC"}, "type": "Zone Air Temperature", "name": "Space 0 ZN"}, "zoneTemp101": {"topic": "temps/building101", "field": "temp", "meta": {"units": "C", "type": "float", "tz": "UTC"}, "type": "Zone Air Temperature", "name": "Space 1 ZN"}}}
\ No newline at end of file
{"inputs": {"CoolSched109": {"topic": "setp/building109", "field": "schedule", "type": "schedule", "name": "OfficeSmall CLGSETP_SCH_NO_OPTIMUM1"}, "CoolSched110": {"topic": "setp/building110", "field": "schedule", "type": "schedule", "name": "OfficeSmall CLGSETP_SCH_NO_OPTIMUM2"}, "CoolSched111": {"topic": "setp/building111", "field": "schedule", "type": "schedule", "name": "OfficeSmall CLGSETP_SCH_NO_OPTIMUM3"}}, "properties": {"bcvtb_home": "/home/evw/workspace/Code/PBC-Eplus/volttron-energyplus/50Buildings/bcvtb", "model": "/home/evw/workspace/Code/PBC-Eplus/volttron-energyplus/50Buildings/buildings/49987_final.idf/49987_final.idf", "weather": "/home/evw/workspace/Code/PBC-Eplus/weather/USA_TN_Chattanooga.723240_TMY2.epw", "identity": "platform.actuator38"}, "outputs": {"zoneTemp111": {"topic": "temps/building111", "field": "temp", "meta": {"units": "C", "type": "float", "tz": "UTC"}, "type": "Zone Air Temperature", "name": "Space 2 ZN"}, "zoneTemp110": {"topic": "temps/building110", "field": "temp", "meta": {"units": "C", "type": "float", "tz": "UTC"}, "type": "Zone Air Temperature", "name": "Space 1 ZN"}, "zoneTemp109": {"topic": "temps/building109", "field": "temp", "meta": {"units": "C", "type": "float", "tz": "UTC"}, "type": "Zone Air Temperature", "name": "Space 0 ZN"}}}
\ No newline at end of file
{"inputs": {"CoolSched109": {"topic": "setp/building109", "field": "schedule", "type": "schedule", "name": "OfficeSmall CLGSETP_SCH_NO_OPTIMUM1"}, "CoolSched110": {"topic": "setp/building110", "field": "schedule", "type": "schedule", "name": "OfficeSmall CLGSETP_SCH_NO_OPTIMUM2"}, "CoolSched111": {"topic": "setp/building111", "field": "schedule", "type": "schedule", "name": "OfficeSmall CLGSETP_SCH_NO_OPTIMUM3"}}, "properties": {"bcvtb_home": "./bcvtb", "model": "./buildings/49987_final.idf/49987_final.idf", "weather": "./weather/USA_TN_Chattanooga.723240_TMY2.epw", "identity": "platform.actuator38"}, "outputs": {"zoneTemp111": {"topic": "temps/building111", "field": "temp", "meta": {"units": "C", "type": "float", "tz": "UTC"}, "type": "Zone Air Temperature", "name": "Space 2 ZN"}, "zoneTemp110": {"topic": "temps/building110", "field": "temp", "meta": {"units": "C", "type": "float", "tz": "UTC"}, "type": "Zone Air Temperature", "name": "Space 1 ZN"}, "zoneTemp109": {"topic": "temps/building109", "field": "temp", "meta": {"units": "C", "type": "float", "tz": "UTC"}, "type": "Zone Air Temperature", "name": "Space 0 ZN"}}}
\ No newline at end of file
{"inputs": {"CoolSched36": {"topic": "setp/building36", "field": "schedule", "type": "schedule", "name": "OfficeSmall CLGSETP_SCH_NO_OPTIMUM2"}, "CoolSched37": {"topic": "setp/building37", "field": "schedule", "type": "schedule", "name": "OfficeSmall CLGSETP_SCH_NO_OPTIMUM3"}, "CoolSched35": {"topic": "setp/building35", "field": "schedule", "type": "schedule", "name": "OfficeSmall CLGSETP_SCH_NO_OPTIMUM1"}}, "properties": {"bcvtb_home": "/home/evw/workspace/Code/PBC-Eplus/volttron-energyplus/50Buildings/bcvtb", "model": "/home/evw/workspace/Code/PBC-Eplus/volttron-energyplus/50Buildings/buildings/49991_final.idf/49991_final.idf", "weather": "/home/evw/workspace/Code/PBC-Eplus/weather/USA_TN_Chattanooga.723240_TMY2.epw", "identity": "platform.actuator13"}, "outputs": {"zoneTemp37": {"topic": "temps/building37", "field": "temp", "meta": {"units": "C", "type": "float", "tz": "UTC"}, "type": "Zone Air Temperature", "name": "Space 2 ZN"}, "zoneTemp36": {"topic": "temps/building36", "field": "temp", "meta": {"units": "C", "type": "float", "tz": "UTC"}, "type": "Zone Air Temperature", "name": "Space 1 ZN"}, "zoneTemp35": {"topic": "temps/building35", "field": "temp", "meta": {"units": "C", "type": "float", "tz": "UTC"}, "type": "Zone Air Temperature", "name": "Space 0 ZN"}}}
\ No newline at end of file
{"inputs": {"CoolSched36": {"topic": "setp/building36", "field": "schedule", "type": "schedule", "name": "OfficeSmall CLGSETP_SCH_NO_OPTIMUM2"}, "CoolSched37": {"topic": "setp/building37", "field": "schedule", "type": "schedule", "name": "OfficeSmall CLGSETP_SCH_NO_OPTIMUM3"}, "CoolSched35": {"topic": "setp/building35", "field": "schedule", "type": "schedule", "name": "OfficeSmall CLGSETP_SCH_NO_OPTIMUM1"}}, "properties": {"bcvtb_home": "./bcvtb", "model": "./buildings/49991_final.idf/49991_final.idf", "weather": "./weather/USA_TN_Chattanooga.723240_TMY2.epw", "identity": "platform.actuator13"}, "outputs": {"zoneTemp37": {"topic": "temps/building37", "field": "temp", "meta": {"units": "C", "type": "float", "tz": "UTC"}, "type": "Zone Air Temperature", "name": "Space 2 ZN"}, "zoneTemp36": {"topic": "temps/building36", "field": "temp", "meta": {"units": "C", "type": "float", "tz": "UTC"}, "type": "Zone Air Temperature", "name": "Space 1 ZN"}, "zoneTemp35": {"topic": "temps/building35", "field": "temp", "meta": {"units": "C", "type": "float", "tz": "UTC"}, "type": "Zone Air Temperature", "name": "Space 0 ZN"}}}
\ No newline at end of file
......@@ -37,10 +37,10 @@ for idf, fl in enumerate(files):
ctrl_zn_cfg = json.load(open('./config.json','r'))
ctrlZones = ctrl_zn_cfg["maxZones"]
zone_cfg = json.load(open('./agents/PBCcontrolagent/PBCcontrol/zones.config','r'))
zone_cfg = json.load(open('./agents/PBCagent/PBC/zones.config','r'))
zone_cfg["maxZones"] = ctrlZones
with open('./agents/PBCcontrolagent/PBCcontrol/zones.config', 'w') as outfile:
with open('./agents/PBCagent/PBC/zones.config', 'w') as outfile:
json.dump(zone_cfg, outfile)
f = codecs.open('./test_buildings/'+fl, 'r')
......@@ -91,9 +91,9 @@ for idf, fl in enumerate(files):
numZones = max(reppedZones)+1
# Add num of zones to config
zone_cfg = json.load(open('./agents/PBCcontrolagent/PBCcontrol/zones.config','r'))
zone_cfg = json.load(open('./agents/PBCagent/PBC/zones.config','r'))
zone_cfg["numZones"] = 146
with open('./agents/PBCcontrolagent/PBCcontrol/zones.config', 'w') as outfile:
with open('./agents/PBCagent/PBC/zones.config', 'w') as outfile:
json.dump(zone_cfg, outfile)
for idx, l in enumerate(lines):
......@@ -166,12 +166,9 @@ for idf, fl in enumerate(files):
config = {}
config["properties"] = {
"identity" : "platform.actuator"+str(idf+1),
"model" : "/home/evw/workspace/Code/PBC-Eplus/volttron-energyplus/"
+"50Buildings/buildings/"+fl+"/"+fl,
"weather" : "/home/evw/workspace/Code/PBC-Eplus/weather/"
+"USA_TN_Chattanooga.723240_TMY2.epw",
"bcvtb_home" : "/home/evw/workspace/Code/PBC-Eplus/"
+"volttron-energyplus/50Buildings/bcvtb"
"model" : "./buildings/"+fl+"/"+fl,
"weather" : "./weather/USA_TN_Chattanooga.723240_TMY2.epw",
"bcvtb_home" : "./bcvtb"
}
#config['properties']['model'] += fl +str('/')+fl
......@@ -247,3 +244,4 @@ for idx, fl in enumerate(files):
+' building'+str(idx),
shell=True)
time.sleep(1)
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
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