Skip to content

[docs] Coerce linspace to int#67

Open
brad-alexander wants to merge 1 commit intohamiltron:masterfrom
brad-alexander:patch-1
Open

[docs] Coerce linspace to int#67
brad-alexander wants to merge 1 commit intohamiltron:masterfrom
brad-alexander:patch-1

Conversation

@brad-alexander
Copy link
Copy Markdown

Resolves:

Traceback (most recent call last):
  File "<snip>\play.py", line 2, in <module>
    import numpy as np
play.py' 
Traceback (most recent call last):
  File "<snip>\play.py", line 13, in <module>
    t = np.linspace(0, T, T * sample_rate, False)
  File "<__array_function__ internals>", line 200, in linspace
  File "<snip>\Python310\lib\site-packages\numpy\core\function_base.py", line 121, in linspace
    num = operator.index(num)
TypeError: 'float' object cannot be interpreted as an integer

numpy==1.24.1
simpleaudio==1.0.4
Windows 10 19044.2364

numpy==1.24.1
simpleaudio==1.0.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant