Hallo in line 287
return (result, theta)
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
and in syslog
Mar 9 18:35:18 hesba weewx[9625] INFO weewx.engine: StdConvert target unit
is 0x10
Mar 9 18:35:18 hesba weewx[9625] CRITICAL __main__: Caught unrecoverable
exception:
Mar 9 18:35:18 hesba weewx[9625] CRITICAL __main__: **** invalid
syntax (growing_degrees.py, line 294)
Mar 9 18:35:18 hesba weewx[9625] CRITICAL __main__: **** Traceback
(most recent call last):
Mar 9 18:35:18 hesba weewx[9625] CRITICAL __main__: **** File
"/home/weewx/bin/weewxd", line 151, in main
Mar 9 18:35:18 hesba weewx[9625] CRITICAL __main__: **** engine =
weewx.engine.StdEngine(config_dict)
Mar 9 18:35:18 hesba weewx[9625] CRITICAL __main__: **** File
"/home/weewx/bin/weewx/engine.py", line 93, in __init__
Mar 9 18:35:18 hesba weewx[9625] CRITICAL __main__: ****
self.loadServices(config_dict)
Mar 9 18:35:18 hesba weewx[9625] CRITICAL __main__: **** File
"/home/weewx/bin/weewx/engine.py", line 161, in loadServices
Mar 9 18:35:18 hesba weewx[9625] CRITICAL __main__: **** obj =
weeutil.weeutil.get_object(svc)(self, config_dict)
Mar 9 18:35:18 hesba weewx[9625] CRITICAL __main__: **** File
"/home/weewx/bin/weeutil/weeutil.py", line 1093, in get_object
Mar 9 18:35:18 hesba weewx[9625] CRITICAL __main__: **** mod =
__import__(module)
Mar 9 18:35:18 hesba weewx[9625] CRITICAL __main__: **** File
"/home/weewx/bin/user/phenologyservice.py", line 35, in <module>
Mar 9 18:35:18 hesba weewx[9625] CRITICAL __main__: **** import
user.growing_degrees
Mar 9 18:35:18 hesba weewx[9625] CRITICAL __main__: **** File
"/home/weewx/bin/user/growing_degrees.py", line 294
Mar 9 18:35:18 hesba weewx[9625] CRITICAL __main__: ****
**dummies,
Mar 9 18:35:18 hesba weewx[9625] CRITICAL __main__: ****
^
Mar 9 18:35:18 hesba weewx[9625] CRITICAL __main__: **** SyntaxError:
invalid syntax
Mar 9 18:35:18 hesba weewx[9625] CRITICAL __main__: **** Exiting.
[email protected] schrieb am Dienstag, 9. März 2021 um 18:00:35 UTC+1:
> i line 290
> 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
>
> and in syslog ar SyntaxError: invalid syntax
> Hartmut
> [email protected] schrieb am Dienstag, 9. März 2021 um 17:55:53 UTC+1:
>
>> Hallo!
>> I have completely reinstalled the calculation and get it
>>
>> Mar 9 17:53:18 hesba weewx[5536] INFO weewx.engine: StdConvert target
>> unit is 0x10
>> Mar 9 17:53:18 hesba weewx[5536] CRITICAL __main__: Caught unrecoverable
>> exception:
>> Mar 9 17:53:18 hesba weewx[5536] CRITICAL __main__: **** invalid
>> syntax (growing_degrees.py, line 294)
>> Mar 9 17:53:18 hesba weewx[5536] CRITICAL __main__: **** Traceback
>> (most recent call last):
>> Mar 9 17:53:18 hesba weewx[5536] CRITICAL __main__: **** File
>> "/home/weewx/bin/weewxd", line 151, in main
>> Mar 9 17:53:18 hesba weewx[5536] CRITICAL __main__: **** engine
>> = weewx.engine.StdEngine(config_dict)
>> Mar 9 17:53:18 hesba weewx[5536] CRITICAL __main__: **** File
>> "/home/weewx/bin/weewx/engine.py", line 93, in __init__
>> Mar 9 17:53:18 hesba weewx[5536] CRITICAL __main__: ****
>> self.loadServices(config_dict)
>> Mar 9 17:53:18 hesba weewx[5536] CRITICAL __main__: **** File
>> "/home/weewx/bin/weewx/engine.py", line 161, in loadServices
>> Mar 9 17:53:18 hesba weewx[5536] CRITICAL __main__: **** obj =
>> weeutil.weeutil.get_object(svc)(self, config_dict)
>> Mar 9 17:53:18 hesba weewx[5536] CRITICAL __main__: **** File
>> "/home/weewx/bin/weeutil/weeutil.py", line 1093, in get_object
>> Mar 9 17:53:18 hesba weewx[5536] CRITICAL __main__: **** mod =
>> __import__(module)
>> Mar 9 17:53:18 hesba weewx[5536] CRITICAL __main__: **** File
>> "/home/weewx/bin/user/phenologyservice.py", line 35, in <module>
>> Mar 9 17:53:18 hesba weewx[5536] CRITICAL __main__: **** import
>> user.growing_degrees
>> Mar 9 17:53:18 hesba weewx[5536] CRITICAL __main__: **** File
>> "/home/weewx/bin/user/growing_degrees.py", line 294
>> Mar 9 17:53:18 hesba weewx[5536] CRITICAL __main__: ****
>> **dummies,
>> Mar 9 17:53:18 hesba weewx[5536] CRITICAL __main__:
>> **** ^
>> Mar 9 17:53:18 hesba weewx[5536] CRITICAL __main__: ****
>> SyntaxError: invalid syntax
>> Mar 9 17:53:18 hesba weewx[5536] CRITICAL __main__: **** Exiting.
>>
>> Hartmut
>> [email protected] schrieb am Dienstag, 9. März 2021 um 17:42:10 UTC+1:
>>
>>> -----BEGIN PGP SIGNED MESSAGE-----
>>> Hash: SHA1
>>>
>>> On Tue, 9 Mar 2021 04:33:50 -0800 (PST)
>>> "[email protected]" <[email protected]> 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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/weewx-user/1a04acd9-dc69-41ce-9c13-dd7665a2bfc9n%40googlegroups.com.