Skip to content

Commit

Permalink
Revised tests in light of last bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
arthur-e committed Jul 12, 2024
1 parent 4dc1db9 commit 1b0d8f5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ build-backend = "setuptools.build_meta"

[project]
name = "mod16"
version = "0.1.0"
version = "1.0.0"
authors = [
{name = "K. Arthur Endsley", email = "[email protected]"}
]
description = "Python tools for MOD16 algorithm"
readme = "README.md"
requires-python = ">=3.8"
requires-python = ">=3.10"
license = {file = "LICENSE"}
classifiers = [
"Programming Language :: Python :: 3",
Expand Down Expand Up @@ -38,4 +38,4 @@ dependencies = [
[project.optional-dependencies]
docs = ["pdoc3>=0.9.2"]
sensitivity = ["SALib>=1.4.5"]
calibration = ["pymc>=5.0.0", "pytensor>=2.18.0", "arviz>=0.13.0"]
calibration = ["pymc >=5.10.0, <=5.12.0", "pytensor>=2.18.0", "arviz>=0.13.0"]
6 changes: 3 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = mod16
version = 0.1.0
version = 1.0.0
author = K. Arthur Endsley
author_email = [email protected]
description = Python tools for MOD16 algorithm
Expand All @@ -13,7 +13,7 @@ classifiers =
[options]
packages = mod16
py_modules = mod16.utils, mod16.calibration, mod16.sensitivity
python_requires = >=3.8.0
python_requires = >=3.10.0
install_requires =
mod17>=0.1.1
h5py>=3.4.0
Expand All @@ -32,5 +32,5 @@ include_package_data = False

[options.extras_require]
docs = pdoc3>=0.9.2
calibration = pymc>=5.0.0; arviz>=0.13.0; pytensor>=2.18.0
sensitivity = SALib>=1.4.5
calibration = pymc >=5.10.0, <=5.12.0; arviz>=0.13.0; pytensor >=2.18.0, <=2.20.0
6 changes: 3 additions & 3 deletions tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,12 @@ def test_et_vectorized(self):
self.vpd_night, self.pressure, self.fpar, self.lai)
lhv_day = latent_heat_vaporization(self.temp_day)
lhv_night = latent_heat_vaporization(self.temp_night)
self.assertEqual(round(_et, 2), 36.76)
self.assertEqual(round(_day + _night, 2), 36.76)
self.assertEqual(round(_et, 2), 40.94)
self.assertEqual(round(_day + _night, 2), 40.94)
# NOTE: Converting from mass-flux to radiation units incurs a loss
# of precision
self.assertEqual(
round((_day2 * lhv_day) + (_night2 * lhv_night), 1), 36.8)
round((_day2 * lhv_day) + (_night2 * lhv_night), 1), 41.0)

def test_evaporation_soil(self):
'Should accurately calculate evaporation from bare soil'
Expand Down

0 comments on commit 1b0d8f5

Please sign in to comment.