Skip to content

Commit

Permalink
Clean up BluePy import
Browse files Browse the repository at this point in the history
  • Loading branch information
ikmckenz committed Nov 15, 2018
1 parent dc990b6 commit f4093b0
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions openbci/ganglion.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f4093b0

Please sign in to comment.