From 80036aa430a6498226d088ffb5dfbfdb7ce210a7 Mon Sep 17 00:00:00 2001 From: Matthias Geier Date: Mon, 23 Apr 2018 12:02:42 +0200 Subject: wire & rec_unlimited examples: Explicitly import NumPy --- examples/rec_unlimited.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'examples/rec_unlimited.py') diff --git a/examples/rec_unlimited.py b/examples/rec_unlimited.py index b8f448f..262ed40 100755 --- a/examples/rec_unlimited.py +++ b/examples/rec_unlimited.py @@ -38,6 +38,8 @@ args = parser.parse_args() try: import sounddevice as sd import soundfile as sf + import numpy # Make sure NumPy is loaded before it is used in the callback + assert numpy # avoid "imported but unused" message (W0611) if args.list_devices: print(sd.query_devices()) -- cgit v1.2.3