staghado commited on
Commit
6afd12d
·
1 Parent(s): 864efab

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -61,7 +61,7 @@ def fourier_transform_drawing(input_image, frames, coefficients, img_size):
61
  Integrate the contour along axis (-1) using the composite trapezoidal rule.
62
  https://numpy.org/doc/stable/reference/generated/numpy.trapz.html#r7aa6c77779c0-2
63
  """
64
- f_exp = np.interp(t, t_list, xs + 1j * ys) * np.exp(-n * t_values * 1j)
65
  coef = np.trapz(f_exp, t_values) / tau
66
  return coef
67
 
 
61
  Integrate the contour along axis (-1) using the composite trapezoidal rule.
62
  https://numpy.org/doc/stable/reference/generated/numpy.trapz.html#r7aa6c77779c0-2
63
  """
64
+ f_exp = np.interp(t_values, t_list, xs + 1j * ys) * np.exp(-n * t_values * 1j)
65
  coef = np.trapz(f_exp, t_values) / tau
66
  return coef
67