Skip to content

Commit

Permalink
Require pyndsi version 0.3.0 and higher (#727)
Browse files Browse the repository at this point in the history
* Require pyndsi version 0.3.0 and higher

* Add ndsi version to Source Manager ui
  • Loading branch information
papr authored and mkassner committed May 19, 2017
1 parent e6d5aa1 commit 5a55c4b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pupil_src/shared_modules/video_capture/ndsi_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@

from .base_backend import Base_Source, Base_Manager

assert ndsi.NDS_PROTOCOL_VERSION >= '0.2.16'
try:
from ndsi import __version__
assert __version__ >= '0.3.0'
from ndsi import __protocol_version__
except (ImportError, AssertionError):
raise Exception("pyndsi version is to old. Please upgrade")
logger = logging.getLogger(__name__)


Expand Down Expand Up @@ -337,6 +342,7 @@ def init_gui(self):
from pyglui import ui
ui_elements = []
ui_elements.append(ui.Info_Text('Remote Pupil Mobile sources'))
ui_elements.append(ui.Info_Text('Pupil Mobile Commspec v{}'.format(__protocol_version__)))

def host_selection_list():
devices = {
Expand Down

0 comments on commit 5a55c4b

Please sign in to comment.