keflavich / MultiComponentFitting

Sprint repository for multi-component fitting. To be migrated to radio-astro-tools when ready
0 stars 0 forks source link

adaptive_savgol error #12

Open LinuxpowerLudo opened 3 years ago

LinuxpowerLudo commented 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.

keflavich commented 3 years ago

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)

LinuxpowerLudo commented 3 years ago

Ah yess thanks :) same error line 221.