From 194115f5d4dbd0d85b7f50873ac6f80ffe7221ba Mon Sep 17 00:00:00 2001 From: Miles Wells Date: Fri, 22 Nov 2024 14:18:13 +0200 Subject: [PATCH] Resolves #18 --- iblrig_custom_tasks/_sp_passiveVideo/task.py | 4 +++- pyproject.toml | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/iblrig_custom_tasks/_sp_passiveVideo/task.py b/iblrig_custom_tasks/_sp_passiveVideo/task.py index 409f05b..8e32bb6 100644 --- a/iblrig_custom_tasks/_sp_passiveVideo/task.py +++ b/iblrig_custom_tasks/_sp_passiveVideo/task.py @@ -143,8 +143,10 @@ def next_trial(self): def _set_bpod_out(self, val): """Set Bpod BNC1 output state.""" + BNC_HIGH = 255 + BNC_LOW = 0 if isinstance(val, bool): - val = 255 if val else 128 + val = BNC_HIGH if val else BNC_LOW self.bpod.manual_override(Bpod.ChannelTypes.OUTPUT, Bpod.ChannelNames.BNC, channel_number=1, value=val) def _run(self): diff --git a/pyproject.toml b/pyproject.toml index 7ed8c04..e1e2320 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "project_extraction" -version = "0.4.0" +version = "0.4.1" description = "Custom extractors for satellite tasks" dynamic = [ "readme" ] keywords = [ "IBL", "neuro-science" ]