Commit last-minute

This commit is contained in:
francesco-bufalini 2025-08-02 13:46:28 +02:00
parent b4a97a65ab
commit 0ba7189bfc
221 changed files with 139931 additions and 1 deletions

View file

@ -0,0 +1,21 @@
""" A global test of hydroshoot model on potted grapevine, to secure refactoring"""
from pathlib import Path
from numpy.testing import assert_array_almost_equal
from hydroshoot import model
import non_regression_data
def test_potted_grapevine():
path_data = Path(__file__).parent / 'data'
results = model.run(
g=non_regression_data.potted_syrah(),
wd=path_data,
path_weather=path_data / 'meteo.csv',
write_result=False,
psi_soil=-0.2,
gdd_since_budbreak=100.)
ref = non_regression_data.reference_time_series_output()
# do not compare date index
assert_array_almost_equal(ref.iloc[0, :], results.reset_index(drop=True).iloc[0, :], decimal=0)