Skip to content

Commit

Permalink
Added get_recording_state
Browse files Browse the repository at this point in the history
  • Loading branch information
cboulay committed Aug 10, 2020
1 parent c04637a commit 4630109
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions cerebuswrapper/cbsdkConnection.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,3 +211,11 @@ def get_connection_state(self):
msg_str = 'Not connected'
# TODO: Enable connect menu/toolbar
return msg_str

def get_recording_state(self):
if self.is_connected:
info = cbpy.file_config(command='info')
# info is a tuple (instance #?, dict info)
return info[1]['Recording']
else:
return False
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

setup(
name='cerebuswrapper',
version='0.0.1',
version='0.1.0',
description='A thin convenience wrapper around Cerelink cerebus.cbpy',
long_description=long_description,
url='https://github.com/SachsLab/cerebuswrapper',
Expand Down

0 comments on commit 4630109

Please sign in to comment.