Skip to content

Commit

Permalink
fixed some typos utilities.py and added set_example file
Browse files Browse the repository at this point in the history
  • Loading branch information
FedericoTartarini committed Apr 11, 2020
1 parent c1d8627 commit ae59bb9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions examples/calc_set_tmp.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
"""In this example I am calculating the Standard Effective Temperature (SET) with the pythermalcomfort package"""

from pythermalcomfort.models import set_tmp

set_value = set_tmp(tdb=25, tr=25, v=.3, rh=60, met=1.2, clo=0.5)
print(f'set_value= {set_value}')

set_value = set_tmp(tdb=25, tr=25, v=.5, rh=60, met=1.2, clo=0.5)
print(f'set_value= {set_value}')

set_value = set_tmp(tdb=77, tr=77, v=.6, rh=60, met=1.2, clo=0.5, units='IP')
print(f'set_value= {set_value}')
2 changes: 1 addition & 1 deletion src/pythermalcomfort/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def check_standard_compliance(standard, **kwargs):
warnings.warn("ISO met applicability limits between 1.0 and 2.0 met", UserWarning)
if key == 'clo':
if value > 2 or value < 0:
warnings.warn("ISO clo applicability limits between 0.0 and 1.5 clo", UserWarning)
warnings.warn("ISO clo applicability limits between 0.0 and 2 clo", UserWarning)


def secant(f, a, b, n):
Expand Down

0 comments on commit ae59bb9

Please sign in to comment.