ImperialCollegeLondon / pyrealm

Development of the pyrealm package, providing an integrated toolbox for modelling plant productivity, growth and demography using Python.
https://pyrealm.readthedocs.io/
MIT License
19 stars 8 forks source link

Failing tests for python 3.11 on MacOS #274

Closed AmyOctoCat closed 3 weeks ago

AmyOctoCat commented 3 weeks ago

Describe the bug Tests are currently failing on the main and develop branches.

To Reproduce

  1. Checkout the latest version of main (same happens on develop)
  2. Run pytest using: poetry run python -m pytest
  3. The following tests fail: FAILED pyrealm/core/utilities.py::pyrealm.core.utilities FAILED pyrealm/core/utilities.py::pyrealm.core.utilities.bounds_mask FAILED pyrealm/core/water.py::pyrealm.core.water.calc_density_h2o FAILED pyrealm/core/water.py::pyrealm.core.water.calc_density_h2o_chen FAILED pyrealm/core/water.py::pyrealm.core.water.calc_density_h2o_fisher FAILED pyrealm/core/water.py::pyrealm.core.water.calc_viscosity_h2o FAILED pyrealm/core/water.py::pyrealm.core.water.calc_viscosity_h2o_matrix FAILED pyrealm/pmodel/functions.py::pyrealm.pmodel.functions.calc_co2_to_ca FAILED pyrealm/pmodel/functions.py::pyrealm.pmodel.functions.calc_ftemp_arrh FAILED pyrealm/pmodel/functions.py::pyrealm.pmodel.functions.calc_ftemp_inst_rd FAILED pyrealm/pmodel/functions.py::pyrealm.pmodel.functions.calc_ftemp_inst_vcmax FAILED pyrealm/pmodel/functions.py::pyrealm.pmodel.functions.calc_ftemp_kphio FAILED pyrealm/pmodel/functions.py::pyrealm.pmodel.functions.calc_kmm FAILED pyrealm/pmodel/functions.py::pyrealm.pmodel.functions.calc_ns_star

Expected behavior All tests to pass

Screenshots

Screenshot 2024-08-23 at 15 26 24

Desktop (please complete the following information):

AmyOctoCat commented 3 weeks ago

This was a local poetry setup error - I had not run a recent enough install. Apologies for any confusion!

davidorme commented 3 weeks ago

I had exactly the same thing 😄 "Fixed" them all on another branch and then had to revert them.