Skip to content

Commit

Permalink
Merge remote-tracking branch 'openbci/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey1994 committed Mar 3, 2020
2 parents c5d9555 + 17f1edc commit 80ce88c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/python/hardware_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ def main ():
parser.add_argument ('--run-time', type = int, help = 'run time for one iteration in sec', required = True)
parser.add_argument ('--num-iters', type = int, help = 'number of iterations', default = 1)
parser.add_argument ('--channels', type = str, help = 'channels to plot in format 0,1,2 by default plot all channels', default = None)
parser.add_argument ('--config', type = str, help = 'config string', default = None)
args = parser.parse_args ()

params = BrainFlowInputParams ()
Expand All @@ -49,6 +50,8 @@ def main ():

board = BoardShim (args.board_id, params)
board.prepare_session ()
if args.config is not None:
board.config_board (args.config)

buffer_size = int (BoardShim.get_sampling_rate (master_board_id) * args.run_time * 1.2) # + 20% for safety

Expand Down

0 comments on commit 80ce88c

Please sign in to comment.