Skip to content

Commit

Permalink
Remove numpy dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
ideoforms committed Aug 9, 2024
1 parent b937275 commit 8c7e40e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions isobar/io/cv/output.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from ..output import OutputDevice
import numpy as np

def get_cv_output_devices():
return list(sounddevice.query_devices())
Expand Down Expand Up @@ -36,8 +35,9 @@ def __init__(self, device_name=None, sample_rate=44100):
#--------------------------------------------------------------------------------
try:
import sounddevice
import numpy as np
except ModuleNotFoundError:
raise RuntimeError("CVOutputDevice: Couldn't import the sounddevice module (to install: pip3 install sounddevice)")
raise RuntimeError("CVOutputDevice: Couldn't import the sounddevice or numpy modules (to install: pip3 install sounddevice numpy)")

try:
self.stream = sounddevice.OutputStream(device=device_name,
Expand Down

0 comments on commit 8c7e40e

Please sign in to comment.