Open LinuxpowerLudo opened 3 years ago
Hello,
I have some trouble about your adaptive_savgol.py code :
"adaptive_savgol.py", line 179 for k, g in groupby(enumerate(above_crit), lambda (i, x): i - x): ^ SyntaxError: invalid syntax
I use python 3.6.
Thanks for your help. Regards.
https://github.com/keflavich/MultiComponentFitting/blob/97edcb1decaf008d51269ea7cfd6945399f42ca1/multicomponentfitting/nonparametric/adaptive_savgol.py#L179
fixed in https://github.com/keflavich/MultiComponentFitting/commit/1b3987596dee9dc7814d0e1c62978cc857f78d95
(lambda can't have parentheses)
Ah yess thanks :) same error line 221.
Hello,
I have some trouble about your adaptive_savgol.py code :
"adaptive_savgol.py", line 179 for k, g in groupby(enumerate(above_crit), lambda (i, x): i - x): ^ SyntaxError: invalid syntax
I use python 3.6.
Thanks for your help. Regards.