File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2424- Run ` cmake --build build --config Release ` to generate the ` .pyd ` file
2525 - On Windows using MSVC, the ` .pyd ` file will be under ` pybind/build/Release `
2626 - Otherwise, the ` .pyd ` file will be under ` pybind/build `
27+ - Open ` run.py ` and uncomment lines 6-7 (if on linux/macOS), or uncomment lines 10-11 (if on Windows)
2728
2829## Testing
2930- Run the EmotiBit Data Parser on ` tests/simulated-unobstructed-airway_v0.0.0/ip900ap/EmotiBit.csv `
Original file line number Diff line number Diff line change 22import os
33cur_dir = os .path .dirname (__file__ )
44
5- # Add build directory to sys.path ( linux/macOS .so files end up in build directory)
6- pyd_dir = os .path .join (cur_dir , 'build' )
7- sys .path .append (os .path .abspath (pyd_dir ))
5+ # Uncomment the two lines below for linux/macOS since .so files from CMake end up in build directory
6+ # pyd_dir = os.path.join(cur_dir, 'build') # Uncomment if on linux/macOS
7+ # sys.path.append(os.path.abspath(pyd_dir)) # Uncomment if on linux/macOS
88
9- # For Windows, the .pyd files end up in build/Release directory
10- pyd_dir = os .path .join (cur_dir , 'build/Release' )
11- sys .path .append (os .path .abspath (pyd_dir ))
9+ # Uncomment the two lines below for Windows since the .pyd files from CMake end up in build/Release directory
10+ # pyd_dir = os.path.join(cur_dir, 'build/Release')
11+ # sys.path.append(os.path.abspath(pyd_dir))
1212
1313import BrainflowSpO2Algorithm
1414import csv
You can’t perform that action at this time.
0 commit comments