Skip to content

Commit

Permalink
fix: tox only testing python 3.10 and added type ints to cooling effect
Browse files Browse the repository at this point in the history
  • Loading branch information
FedericoTartarini committed Mar 15, 2024
1 parent b589607 commit 3ec2d91
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-test-publish-testPyPI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '3.7', '3.8', '3.9', '3.10' ]
python-version: [ '3.10' ]

steps:
- uses: actions/checkout@v3
Expand Down
12 changes: 11 additions & 1 deletion pythermalcomfort/models/cooling_effect.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import warnings
from typing import Union

from scipy import optimize

Expand All @@ -8,7 +9,16 @@
from pythermalcomfort.models.set_tmp import set_tmp


def cooling_effect(tdb, tr, vr, rh, met, clo, wme=0, units="SI"):
def cooling_effect(
tdb: Union[float, int],
tr: Union[float, int],
vr: Union[float, int],
rh: Union[float, int],
met: Union[float, int],
clo: Union[float, int],
wme=0,
units="SI",
):
"""Returns the value of the Cooling Effect (`CE`_) calculated in compliance
with the ASHRAE 55 2020 Standard [1]_. The `CE`_ of the elevated air speed
is the value that, when subtracted equally from both the average air
Expand Down

0 comments on commit 3ec2d91

Please sign in to comment.