Skip to content

Commit

Permalink
added some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
FedericoTartarini committed Apr 11, 2020
1 parent 8923749 commit 5948eca
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.6.3
current_version = 0.6.4
commit = True
tag = True

Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
Changelog
=========

0.6.3 (2020-04-11)
------------------

* Fixed error in calculation adaptive ASHRAE
* Added some examples

0.6.3 (2020-03-17)
------------------

Expand Down
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ Overview
:alt: Supported implementations
:target: https://pypi.org/project/pythermalcomfort

.. |commits-since| image:: https://img.shields.io/github/commits-since/CenterForTheBuiltEnvironment/pythermalcomfort/v0.6.3.svg
.. |commits-since| image:: https://img.shields.io/github/commits-since/CenterForTheBuiltEnvironment/pythermalcomfort/v0.6.4.svg
:alt: Commits since latest release
:target: https://github.com/CenterForTheBuiltEnvironment/pythermalcomfort/compare/v0.6.3...master
:target: https://github.com/CenterForTheBuiltEnvironment/pythermalcomfort/compare/v0.6.4...master



Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
year = '2019-2020'
author = 'Federico Tartarini'
copyright = '{0}, {1}'.format(year, author)
version = release = '0.6.3'
version = release = '0.6.4'

pygments_style = 'trac'
templates_path = ['.']
Expand Down
16 changes: 15 additions & 1 deletion examples/calc_adaptive_ASHRAE.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
from pythermalcomfort.models import adaptive_ashrae
from pythermalcomfort.psychrometrics import running_mean_outdoor_temperature
from pprint import pprint

result = adaptive_ashrae(tdb=25, tr=25, t_running_mean=23, v=0.2)
result = adaptive_ashrae(tdb=25, tr=25, t_running_mean=23, v=0.3)

pprint(result)

print(result['acceptability_80'])

result = adaptive_ashrae(tdb=77, tr=77, t_running_mean=73.5, v=1, units='IP')

pprint(result)

print(result['acceptability_80'])

rmt_value = running_mean_outdoor_temperature([29, 28, 30, 29, 28, 30, 27], alpha=0.9)

result = adaptive_ashrae(tdb=25, tr=25, t_running_mean=rmt_value, v=0.3)
pprint(result)
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def read(*names, **kwargs):

setup(
name='pythermalcomfort',
version='0.6.3',
version='0.6.4',
license='MIT',
description='Package to calculate several thermal comfort indices (e.g. PMV, PPD, SET, adaptive) and convert physical variables.',
long_description='%s\n%s' % (
Expand Down
2 changes: 1 addition & 1 deletion src/pythermalcomfort/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
__version__ = '0.6.3'
__version__ = '0.6.4'

from pythermalcomfort.models import *

0 comments on commit 5948eca

Please sign in to comment.