Skip to content

Commit 4fcd1e5

Browse files
committed
Merge remote-tracking branch 'openbci/master'
2 parents ab3e9c9 + d17c4fe commit 4fcd1e5

File tree

4 files changed

+4
-9
lines changed

4 files changed

+4
-9
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ install:
3939
- sudo pip3 install cmake==3.13.3
4040
- sudo -H pip3 install --upgrade setuptools wheel virtualenv
4141
- sudo -H pip3 install $TRAVIS_BUILD_DIR/emulator
42+
- sudo -H pip3 install awscli
4243
# R disabled. It's taking up too much time in CI
4344
# # install required packages for R
4445
# - sudo -H R --vanilla -e 'install.packages("knitr", repos="http://cran.us.r-project.org")'
@@ -173,7 +174,6 @@ script:
173174
- cd $TRAVIS_BUILD_DIR/java-package/brainflow && mvn exec:java -Dexec.mainClass="brainflow.examples.Transforms"
174175

175176
after_success:
176-
- sudo -H pip3 install awscli
177177
# push libraries from docker!
178178
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then
179179
aws s3 cp $TRAVIS_BUILD_DIR/installed_docker/lib/ s3://brainflow/$TRAVIS_COMMIT/$TRAVIS_OS_NAME --recursive ;

docs/notebooks/brainflow_mne.ipynb

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,8 @@
2525
"import brainflow\n",
2626
"from brainflow.board_shim import BoardShim, BrainFlowInputParams, BoardIds\n",
2727
"\n",
28-
"from mne.viz.topomap import _prepare_topo_plot, plot_topomap\n",
2928
"import mne\n",
30-
"from mne.channels import read_layout\n",
31-
"\n",
32-
"from mpl_toolkits.axes_grid1 import make_axes_locatable"
29+
"from mne.channels import read_layout"
3330
]
3431
},
3532
{
@@ -98,7 +95,7 @@
9895
"name": "python",
9996
"nbconvert_exporter": "python",
10097
"pygments_lexer": "ipython3",
101-
"version": "3.6.8"
98+
"version": "3.7.4"
10299
},
103100
"pycharm": {
104101
"stem_cell": {

python-package/brainflow/board_shim.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ def __init__ (self):
124124
if platform.system () == 'Darwin':
125125
os.environ['DYLD_LIBRARY_PATH '] = dir_path + os.pathsep + os.environ.get ('DYLD_LIBRARY_PATH ', '')
126126
os.environ['DYLD_FALLBACK_LIBRARY_PATH '] = dir_path + os.pathsep + os.environ.get ('DYLD_FALLBACK_LIBRARY_PATH ', '')
127+
ctypes.cdll.LoadLibrary (pkg_resources.resource_filename (__name__, 'lib/libneurosdk-shared.dylib'))
127128
self.lib = ctypes.cdll.LoadLibrary (full_path)
128129
else:
129130
raise FileNotFoundError ('Dynamic library %s is missed, did you forget to compile brainflow before installation of python package?' % full_path)

tests/python/brainflow_to_mne.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,9 @@
88
import brainflow
99
from brainflow.board_shim import BoardShim, BrainFlowInputParams, BoardIds
1010

11-
from mne.viz.topomap import _prepare_topo_plot, plot_topomap
1211
import mne
1312
from mne.channels import read_layout
1413

15-
from mpl_toolkits.axes_grid1 import make_axes_locatable
16-
1714

1815
def main():
1916
BoardShim.enable_dev_board_logger ()

0 commit comments

Comments
 (0)