Skip to content

Commit 8b8c4e6

Browse files
ulab.numerical objects not indexable
code.py output: Traceback (most recent call last): File "code.py", line 100, in <module> File "code.py", line 84, in main TypeError: 'float' object is not subscriptable
1 parent 6521722 commit 8b8c4e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ulab_Crunch_Numbers_Fast/waterfall.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ def main():
8181
# to change any zeros to nonzero numbers
8282
spectrogram1 = ulab.vector.log(spectrogram1 + 1e-7)
8383
spectrogram1 = spectrogram1[1:(fft_size//2)-1]
84-
min_curr = ulab.numerical.min(spectrogram1)[0]
85-
max_curr = ulab.numerical.max(spectrogram1)[0]
84+
min_curr = ulab.numerical.min(spectrogram1)
85+
max_curr = ulab.numerical.max(spectrogram1)
8686

8787
if max_curr > max_all:
8888
max_all = max_curr

0 commit comments

Comments
 (0)