Skip to content

Commit

Permalink
take out tqdm loop
Browse files Browse the repository at this point in the history
  • Loading branch information
James Trayford committed Dec 12, 2024
1 parent 8f550ba commit 81d6101
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions jdaviz/configs/cubeviz/plugins/cube_listener.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@
import sys
import os
import time

try:
from strauss.sonification import Sonification
from strauss.sources import Events
from strauss.score import Score
from strauss.generator import Spectralizer
from tqdm import tqdm
except ImportError:
pass

Expand Down Expand Up @@ -117,7 +115,7 @@ def audify_cube(self):
lo2hi = self.wlens.argsort()[::-1]

t0 = time.time()
for i in tqdm(range(self.cube.shape[0])):
for i in range(self.cube.shape[0]):
for j in range(self.cube.shape[1]):
with suppress_stderr():
if self.cube[i, j, lo2hi].any():
Expand Down

0 comments on commit 81d6101

Please sign in to comment.