Skip to content

Commit

Permalink
added tqdm
Browse files Browse the repository at this point in the history
  • Loading branch information
jmbhughes committed Mar 8, 2021
1 parent a910784 commit 5385af3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion noisegate.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import numpy as np
from tqdm import tqdm

fft = np.fft.fftn
ifft = np.fft.ifftn
Expand Down Expand Up @@ -79,7 +80,7 @@ def noise_gate(data, coords, beta_approx, gamma=3, width=12):
gated_image = np.zeros_like(data)

# over all image sections
for i in range(len(coords)):
for i in tqdm(range(len(coords))):
x, y, t = coords[i]

# get image section copy so as not to manipulate it
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
numpy
astropy
tqdm

0 comments on commit 5385af3

Please sign in to comment.