Skip to content

Commit

Permalink
fix(loads): Fix typo to align with core library fix
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswmackey authored and Chris Mackey committed Jan 25, 2023
1 parent d92e7d3 commit 9150477
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.6.0",
"version": "1.6.1",
"nickname": "AbsoluteLoadVals",
"outputs": [
[
Expand Down Expand Up @@ -65,14 +65,14 @@
{
"access": "list",
"name": "vent_flow_",
"description": "A numerical value for the abolute of flow of outdoor air ventilation\nfor the room in cubic meters per second (m3/s). Note that inputting\na value here will overwrite all specification of outdoor air ventilation\ncurrently on the room (per_floor, per_person, ach).",
"description": "A numerical value for the absolute of flow of outdoor air ventilation\nfor the room in cubic meters per second (m3/s). Note that inputting\na value here will overwrite all specification of outdoor air ventilation\ncurrently on the room (per_floor, per_person, ach).",
"type": "double",
"default": null
}
],
"subcategory": "3 :: Loads",
"code": "\ntry:\n from ladybug_{{cad}}.{{plugin}} import all_required_inputs, longest_list\n from ladybug_{{cad}}.config import conversion_to_meters\nexcept ImportError as e:\n raise ImportError('\\nFailed to import ladybug_{{cad}}:\\n\\t{}'.format(e))\n\n\nif all_required_inputs(ghenv.Component):\n conversion = conversion_to_meters()\n rooms = [room.duplicate() for room in _rooms] # duplicate the initial objects\n\n # assign the person_count_\n if len(person_count_) != 0:\n for i, room in enumerate(rooms):\n room.properties.energy.abolute_people(\n longest_list(person_count_, i), conversion)\n\n # assign the lighting_watts_\n if len(lighting_watts_) != 0:\n for i, room in enumerate(rooms):\n room.properties.energy.abolute_lighting(\n longest_list(lighting_watts_, i), conversion)\n\n # assign the electric_watts_\n if len(electric_watts_) != 0:\n for i, room in enumerate(rooms):\n room.properties.energy.abolute_electric_equipment(\n longest_list(electric_watts_, i), conversion)\n\n # assign the gas_watts_\n if len(gas_watts_) != 0:\n for i, room in enumerate(rooms):\n room.properties.energy.abolute_gas_equipment(\n longest_list(gas_watts_, i), conversion)\n\n # assign the hot_wtr_flow_\n if len(hot_wtr_flow_) != 0:\n for i, room in enumerate(rooms):\n room.properties.energy.abolute_service_hot_water(\n longest_list(hot_wtr_flow_, i), conversion)\n\n # assign the infiltration_ach_\n if len(infiltration_ach_) != 0:\n for i, room in enumerate(rooms):\n room.properties.energy.abolute_infiltration_ach(\n longest_list(infiltration_ach_, i), conversion)\n\n # assign the vent_flow_\n if len(vent_flow_) != 0:\n for i, room in enumerate(rooms):\n room.properties.energy.abolute_ventilation(longest_list(vent_flow_, i))\n",
"code": "\ntry:\n from ladybug_{{cad}}.{{plugin}} import all_required_inputs, longest_list\n from ladybug_{{cad}}.config import conversion_to_meters\nexcept ImportError as e:\n raise ImportError('\\nFailed to import ladybug_{{cad}}:\\n\\t{}'.format(e))\n\n\nif all_required_inputs(ghenv.Component):\n conversion = conversion_to_meters()\n rooms = [room.duplicate() for room in _rooms] # duplicate the initial objects\n\n # assign the person_count_\n if len(person_count_) != 0:\n for i, room in enumerate(rooms):\n room.properties.energy.absolute_people(\n longest_list(person_count_, i), conversion)\n\n # assign the lighting_watts_\n if len(lighting_watts_) != 0:\n for i, room in enumerate(rooms):\n room.properties.energy.absolute_lighting(\n longest_list(lighting_watts_, i), conversion)\n\n # assign the electric_watts_\n if len(electric_watts_) != 0:\n for i, room in enumerate(rooms):\n room.properties.energy.absolute_electric_equipment(\n longest_list(electric_watts_, i), conversion)\n\n # assign the gas_watts_\n if len(gas_watts_) != 0:\n for i, room in enumerate(rooms):\n room.properties.energy.absolute_gas_equipment(\n longest_list(gas_watts_, i), conversion)\n\n # assign the hot_wtr_flow_\n if len(hot_wtr_flow_) != 0:\n for i, room in enumerate(rooms):\n room.properties.energy.absolute_service_hot_water(\n longest_list(hot_wtr_flow_, i), conversion)\n\n # assign the infiltration_ach_\n if len(infiltration_ach_) != 0:\n for i, room in enumerate(rooms):\n room.properties.energy.absolute_infiltration_ach(\n longest_list(infiltration_ach_, i), conversion)\n\n # assign the vent_flow_\n if len(vent_flow_) != 0:\n for i, room in enumerate(rooms):\n room.properties.energy.absolute_ventilation(longest_list(vent_flow_, i))\n",
"category": "HB-Energy",
"name": "HB Apply Abolute Load Values",
"description": "Apply abolute load values to Rooms.\n_\nNote that, while the assigned load values are abolute, this component will convert\nthem to the \"normalized\" value for each room (eg. lighting per floor area) in\norder to apply them to the rooms. So any existing specification of load intensity\nis overwritten with the absolute load here.\n_\nThis also means that, if a room has no floors (or exterior walls for infiltration),\nthe resulting load values will be equal to 0 regardless of the input here. The\nonly exception is the vent_flow_, which will be applied regardless of the room\nproperties.\n_\nThis component will not edit any of the schedules or other properties associated\nwith each load value. If no schedule currently exists to describe how the load\nvaries over the simulation, the \"Always On\" schedule will be used as a default.\n-"
"description": "Apply absolute load values to Rooms.\n_\nNote that, while the assigned load values are absolute, this component will convert\nthem to the \"normalized\" value for each room (eg. lighting per floor area) in\norder to apply them to the rooms. So any existing specification of load intensity\nis overwritten with the absolute load here.\n_\nThis also means that, if a room has no floors (or exterior walls for infiltration),\nthe resulting load values will be equal to 0 regardless of the input here. The\nonly exception is the vent_flow_, which will be applied regardless of the room\nproperties.\n_\nThis component will not edit any of the schedules or other properties associated\nwith each load value. If no schedule currently exists to describe how the load\nvaries over the simulation, the \"Always On\" schedule will be used as a default.\n-"
}
22 changes: 11 additions & 11 deletions honeybee_grasshopper_energy/src/HB Apply Abolute Load Values.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
# @license AGPL-3.0-or-later <https://spdx.org/licenses/AGPL-3.0-or-later>

"""
Apply abolute load values to Rooms.
Apply absolute load values to Rooms.
_
Note that, while the assigned load values are abolute, this component will convert
Note that, while the assigned load values are absolute, this component will convert
them to the "normalized" value for each room (eg. lighting per floor area) in
order to apply them to the rooms. So any existing specification of load intensity
is overwritten with the absolute load here.
Expand All @@ -36,7 +36,7 @@
room in liters per hour (L/h).
infiltration_ach_: A number for the infiltration flow rate in air changes
per hour (ACH).
vent_flow_: A numerical value for the abolute of flow of outdoor air ventilation
vent_flow_: A numerical value for the absolute of flow of outdoor air ventilation
for the room in cubic meters per second (m3/s). Note that inputting
a value here will overwrite all specification of outdoor air ventilation
currently on the room (per_floor, per_person, ach).
Expand All @@ -48,7 +48,7 @@

ghenv.Component.Name = 'HB Apply Abolute Load Values'
ghenv.Component.NickName = 'AbsoluteLoadVals'
ghenv.Component.Message = '1.6.0'
ghenv.Component.Message = '1.6.1'
ghenv.Component.Category = 'HB-Energy'
ghenv.Component.SubCategory = '3 :: Loads'
ghenv.Component.AdditionalHelpFromDocStrings = '2'
Expand All @@ -67,40 +67,40 @@
# assign the person_count_
if len(person_count_) != 0:
for i, room in enumerate(rooms):
room.properties.energy.abolute_people(
room.properties.energy.absolute_people(
longest_list(person_count_, i), conversion)

# assign the lighting_watts_
if len(lighting_watts_) != 0:
for i, room in enumerate(rooms):
room.properties.energy.abolute_lighting(
room.properties.energy.absolute_lighting(
longest_list(lighting_watts_, i), conversion)

# assign the electric_watts_
if len(electric_watts_) != 0:
for i, room in enumerate(rooms):
room.properties.energy.abolute_electric_equipment(
room.properties.energy.absolute_electric_equipment(
longest_list(electric_watts_, i), conversion)

# assign the gas_watts_
if len(gas_watts_) != 0:
for i, room in enumerate(rooms):
room.properties.energy.abolute_gas_equipment(
room.properties.energy.absolute_gas_equipment(
longest_list(gas_watts_, i), conversion)

# assign the hot_wtr_flow_
if len(hot_wtr_flow_) != 0:
for i, room in enumerate(rooms):
room.properties.energy.abolute_service_hot_water(
room.properties.energy.absolute_service_hot_water(
longest_list(hot_wtr_flow_, i), conversion)

# assign the infiltration_ach_
if len(infiltration_ach_) != 0:
for i, room in enumerate(rooms):
room.properties.energy.abolute_infiltration_ach(
room.properties.energy.absolute_infiltration_ach(
longest_list(infiltration_ach_, i), conversion)

# assign the vent_flow_
if len(vent_flow_) != 0:
for i, room in enumerate(rooms):
room.properties.energy.abolute_ventilation(longest_list(vent_flow_, i))
room.properties.energy.absolute_ventilation(longest_list(vent_flow_, i))
Binary file not shown.

0 comments on commit 9150477

Please sign in to comment.