From f4093b0cfa01b0def38d3d36e33840cb8718abf3 Mon Sep 17 00:00:00 2001 From: Ian McKenzie Date: Thu, 15 Nov 2018 13:08:04 -0600 Subject: [PATCH] Clean up BluePy import --- openbci/ganglion.py | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/openbci/ganglion.py b/openbci/ganglion.py index a78a44f..b6aa6b9 100644 --- a/openbci/ganglion.py +++ b/openbci/ganglion.py @@ -23,19 +23,7 @@ def handle_sample(sample): import sys import pdb import glob -# local bluepy should take precedence -import sys -sys.path.insert(0,"bluepy/bluepy") - -STUB_BTLE = False - -try: - from btle import Scanner, DefaultDelegate, Peripheral -except: - DefaultDelegate = object - STUB_BTLE = True -else: - from bluepy.btle import Scanner, DefaultDelegate, Peripheral +from bluepy.btle import Scanner, DefaultDelegate, Peripheral SAMPLE_RATE = 200.0 # Hz