staghado commited on
Commit
36a53ae
·
1 Parent(s): 64afff8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -38,7 +38,7 @@ def calculate_fourier_coefficients(xs, ys, num_points, coefficients):
38
 
39
  N = coefficients
40
  indices = [0] + [j for i in range(1, N + 1) for j in (i, -i)]
41
- with ThreadPoolExecutor(max_workers=4) as executor:
42
  coefs = list(executor.map(lambda n: (compute_cn(f_precomputed, n, t_values), n), indices))
43
 
44
  return coefs
 
38
 
39
  N = coefficients
40
  indices = [0] + [j for i in range(1, N + 1) for j in (i, -i)]
41
+ with ThreadPoolExecutor(max_workers=2) as executor:
42
  coefs = list(executor.map(lambda n: (compute_cn(f_precomputed, n, t_values), n), indices))
43
 
44
  return coefs