Skip to content

Commit

Permalink
feat(datatype): Adding data types for schedule type limits
Browse files Browse the repository at this point in the history
Now that I am starting to implement schedule in honeybee-energy, I realized there are a few more data types that it would be useful to have in ladybug core.
  • Loading branch information
chriswmackey authored and Chris Mackey committed Aug 19, 2019
1 parent e97f89f commit 7de62c9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ladybug/datatype/power.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,8 @@ def to_si(self, values, from_unit):
def isPower(self):
"""Return True."""
return True


class ActivityLevel(Power):
_abbreviation = 'Activity'
_min = 0
8 changes: 8 additions & 0 deletions ladybug/datatype/uvalue.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,11 @@ def to_si(self, values, from_unit):
def isUValue(self):
"""Return True."""
return True


class ConvectionCoefficient(UValue):
_abbreviation = 'hc'


class RadiantCoefficient(UValue):
_abbreviation = 'hr'

0 comments on commit 7de62c9

Please sign in to comment.