Skip to content

Commit

Permalink
fix(extend): Extend ProgramType with to_inp() method
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswmackey committed May 8, 2024
1 parent ad38e52 commit 38a5ed2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions honeybee_doe2/_extend_honeybee.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ def room_doe2_properties(self):
from honeybee_energy.schedule.day import ScheduleDay
from honeybee_energy.schedule.ruleset import ScheduleRuleset
from honeybee_energy.schedule.fixedinterval import ScheduleFixedInterval
from honeybee_energy.programtype import ProgramType
from honeybee_energy.material.opaque import EnergyMaterial, EnergyMaterialNoMass, \
EnergyMaterialVegetation
from honeybee_energy.construction.opaque import OpaqueConstruction
Expand All @@ -62,12 +63,14 @@ def room_doe2_properties(self):
schedule_fixed_interval_to_inp
from .construction import opaque_material_to_inp, opaque_construction_to_inp, \
window_construction_to_inp, air_construction_to_inp
from .programtype import program_type_to_inp
from .simulation import run_period_to_inp

# add the methods to the honeybee-energy classes
ScheduleDay.to_inp = schedule_day_to_inp
ScheduleRuleset.to_inp = schedule_ruleset_to_inp
ScheduleFixedInterval.to_inp = schedule_fixed_interval_to_inp
ProgramType.to_inp = program_type_to_inp
EnergyMaterial.to_inp = opaque_material_to_inp
EnergyMaterialNoMass.to_inp = opaque_material_to_inp
EnergyMaterialVegetation.to_inp = opaque_material_to_inp
Expand Down

0 comments on commit 38a5ed2

Please sign in to comment.