-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tue, 9 Mar 2021 04:33:50 -0800 (PST) "hesf...@gmail.com" <hesfr...@gmail.com> wrote:
> Then I deleted all "**dummies" in growing_degrees.py > Reason: dd_conventional() got an unexpected keyword argument > 'cutoff_temp' Mar 9 13:27:31 hesba weewx[15638] ERROR Yes, all the formulas supported by the growing_degrees module are invoked from the get_gdd_series method of the GrowingDegreeDays class of the phenologyservice module. > gdd = method( > day_max_temp=temp_max, > day_min_temp=temp_min, > threshold_temp=threshold_temp, > cutoff_temp=cutoff_temp, > day_2_min_temp=temp_min_2, > scale=scale, > ) They are all called with the same sequence of parameters whether or not the formula requires them all. The **dummies in the calling sequences in the growing_degrees module is catch-all syntax to consume the unused parameters, so it has to be in there. You report a syntax error at line 295 in growing_degrees.py. Here is the code near that line. Is this what you see? > def gdd_single_sine_no_cutoff( # 2019 Jan 08 > day_max_temp, > day_min_temp, > threshold_temp, > **dummies, > ): > (result, theta) = gdd_single_sine_with_theta( # 2019 Jan 08 > day_max_temp=day_max_temp, > day_min_temp=day_min_temp, > threshold_temp=threshold_temp, > ) > return result - -- .. Be Seeing You, .. Chuck Rhode, Sheboygan, WI, USA .. Weather: http://LacusVeris.com/WX .. 48° — Wind SE 6 mph -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQT+MY/5I/LMPSswTbVg2/xipKOWUgUCYEekJQAKCRBg2/xipKOW Uo79AJ4rldPFAPd+rUa2/n7yvGLj3acq9ACeLK4EcUl6qXGRuoGQ/vtxpAjbzcM= =BepH -----END PGP SIGNATURE----- -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/20210309103653.223d00fb%40wealthy.