From b57410d31040f44d7358cd3b0993cbcacad4f1c2 Mon Sep 17 00:00:00 2001 From: Mike Kittridge Date: Wed, 6 Nov 2024 17:51:12 +1300 Subject: [PATCH] fix 2 --- eto/core.py | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/eto/core.py b/eto/core.py index 9e55339..a30a0dc 100644 --- a/eto/core.py +++ b/eto/core.py @@ -26,13 +26,7 @@ def __init__(self, df=None, freq='D', z_msl=None, lat=None, lon=None, TZ_lon=Non if df is None: pass else: - param_est(self, df, freq, z_msl, lat, lon, TZ_lon, z_u, K_rs, a_s, b_s, alb) - - ### Add in the ETo methods and other functions - self.param_est = param_est - self.eto_fao = eto_fao - self.eto_hargreaves = hargreaves - self.copy = copy + self.param_est(df, freq, z_msl, lat, lon, TZ_lon, z_u, K_rs, a_s, b_s, alb) @staticmethod @@ -65,4 +59,8 @@ def tsreg(ts, freq=None, interp=False, maxgap=None): return ts1 - +### Add in the ETo methods and other functions +ETo.param_est = param_est +ETo.eto_fao = eto_fao +ETo.eto_hargreaves = hargreaves +ETo.copy = copy