Skip to content

Commit

Permalink
Fixed bug for csv schedules for setPoints
Browse files Browse the repository at this point in the history
Reported two times and still took me a long walk to think that it should
be a bug and not an issue with schedules!
http://www.grasshopper3d.com/xn/detail/2985220:Comment:1185522
  • Loading branch information
mostaphaRoudsari committed Dec 11, 2014
1 parent 7c2ba3b commit 0b1bc37
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions src/Honeybee_ Run Energy Simulation.py
Expand Up @@ -10,10 +10,10 @@
"""
ghenv.Component.Name = "Honeybee_ Run Energy Simulation"
ghenv.Component.NickName = 'runEnergySimulation'
ghenv.Component.Message = 'VER 0.0.55\nNOV_29_2014'
ghenv.Component.Message = 'VER 0.0.55\nDEC_10_2014'
ghenv.Component.Category = "Honeybee"
ghenv.Component.SubCategory = "09 | Energy | Energy"
#compatibleHBVersion = VER 0.0.55\nNOV_29_2014
#compatibleHBVersion = VER 0.0.55\nDEC_08_2014
#compatibleLBVersion = VER 0.0.58\nAUG_20_2014
ghenv.Component.AdditionalHelpFromDocStrings = "2"

Expand Down Expand Up @@ -249,10 +249,21 @@ def writeThemostat(self, name, zone):

def writeSetpoint(self, zone, name):
if zone.isConditioned:
heatingSetPtSchedule = zone.heatingSetPtSchedule
coolingSetPtSchedule = zone.coolingSetPtSchedule

if heatingSetPtSchedule.lower().endswith(".csv"):
# find filebased schedule name
heatingSetPtSchedule = self.fileBasedSchedules[heatingSetPtSchedule.upper()]

if coolingSetPtSchedule.lower().endswith(".csv"):
# find filebased schedule name
coolingSetPtSchedule = self.fileBasedSchedules[coolingSetPtSchedule.upper()]

return '\nThermostatSetpoint:DualSetpoint,\n' + \
'\t' + name + ' Thermostat Dual SP Control' + ', !- Name\n' + \
'\t' + zone.heatingSetPtSchedule + ', !- Heating Setpoint Temperature Schedule Name\n' + \
'\t' + zone.coolingSetPtSchedule + '; !- Cooling Setpoint Temperature Schedule Name\n'
'\t' + heatingSetPtSchedule + ', !- Heating Setpoint Temperature Schedule Name\n' + \
'\t' + coolingSetPtSchedule + '; !- Cooling Setpoint Temperature Schedule Name\n'
else:
return "\n"

Expand Down
Binary file modified userObjects/Honeybee_ Run Energy Simulation.ghuser
Binary file not shown.

0 comments on commit 0b1bc37

Please sign in to comment.