We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8788431 commit afd109eCopy full SHA for afd109e
fooof/core/funcs.py
@@ -32,9 +32,7 @@ def gaussian_function(xs, *params):
32
33
ys = np.zeros_like(xs)
34
35
- for ii in range(0, len(params), 3):
36
-
37
- ctr, hgt, wid = params[ii:ii+3]
+ for ctr, hgt, wid in zip(*[iter(params)] * 3):
38
39
ys = ys + hgt * np.exp(-(xs-ctr)**2 / (2*wid**2))
40
0 commit comments