From eafeca6057a7cbd30702bcc37ceb2ae0fa6b4f16 Mon Sep 17 00:00:00 2001 From: Mike Kittridge Date: Wed, 6 Nov 2024 17:58:33 +1300 Subject: [PATCH] pandas again... --- eto/tests/test_eto.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/eto/tests/test_eto.py b/eto/tests/test_eto.py index 775a717..dc83d9c 100644 --- a/eto/tests/test_eto.py +++ b/eto/tests/test_eto.py @@ -36,13 +36,13 @@ def test_eto_fao_daily(): - et1 = ETo(tsdata, 'd', z_msl, lat, lon, TZ_lon) + et1 = ETo(tsdata, 'D', z_msl, lat, lon, TZ_lon) eto1 = et1.eto_fao().sum() res1 = tsresults['ETo_FAO_mm'].sum() assert eto1 == res1 -et1 = ETo(tsdata, 'd', z_msl, lat, lon, TZ_lon) +et1 = ETo(tsdata, 'D', z_msl, lat, lon, TZ_lon) def test_eto_har_daily(): eto2 = et1.eto_hargreaves().sum() @@ -52,8 +52,8 @@ def test_eto_har_daily(): def test_eto_fao_hourly(): tsdata2 = et1.ts_param[['R_s', 'T_mean', 'e_a']] - tsdata3 = et1.tsreg(tsdata2, 'h', 'time') - et2 = ETo(tsdata3, 'h', z_msl, lat, lon, TZ_lon) + tsdata3 = et1.tsreg(tsdata2, 'H', 'time') + et2 = ETo(tsdata3, 'H', z_msl, lat, lon, TZ_lon) eto3 = et2.eto_fao().sum() res1 = tsresults['ETo_FAO_mm'].sum()