Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurentRDC committed Jul 7, 2020
1 parent bc4654b commit b0c921b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/tutorials/time_series.rst
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ Let's see what :func:`with_irf` in action:
conv = skued.with_irf(2)(skued.exponential)(times, 0, 1, 1)

plt.figure()
plt.plot(times, data, ".k", label='No IRF'))
plt.plot(times, data, ".k", label='No IRF')
plt.plot(times, conv, "-r", label='With IRF')
plt.legend()
plt.show()
Expand Down
4 changes: 2 additions & 2 deletions skued/time_series/fitting.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ def biexponential(time, tzero, amp1, amp2, tconst1, tconst2, offset=0):
return arr



def regrid(f):
"""
Decorator that makes a function `f` evaluate correctly with uneven-spacing
Expand All @@ -120,6 +119,7 @@ def regrid(f):
f_ : callable
Callable of the form
"""

@wraps(f)
def f_(time, *args, **kwargs):
mn, mx = np.min(time), np.max(time)
Expand Down Expand Up @@ -163,7 +163,7 @@ def decorator(f):
def f_(time, *args, **kwargs):
kernel = _gauss_kernel(time, fwhm=fwhm)
norm = np.sum(kernel)
return np.convolve(f(time, *args, **kwargs), kernel, mode='same') / norm
return np.convolve(f(time, *args, **kwargs), kernel, mode="same") / norm

return f_

Expand Down

0 comments on commit b0c921b

Please sign in to comment.