Skip to content

Commit 39346f1

Browse files
authored
Merge pull request #19 from int-brain-lab/BpodOutFix
Resolves #18
2 parents 61aa855 + 194115f commit 39346f1

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

iblrig_custom_tasks/_sp_passiveVideo/task.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,10 @@ def next_trial(self):
143143

144144
def _set_bpod_out(self, val):
145145
"""Set Bpod BNC1 output state."""
146+
BNC_HIGH = 255
147+
BNC_LOW = 0
146148
if isinstance(val, bool):
147-
val = 255 if val else 128
149+
val = BNC_HIGH if val else BNC_LOW
148150
self.bpod.manual_override(Bpod.ChannelTypes.OUTPUT, Bpod.ChannelNames.BNC, channel_number=1, value=val)
149151

150152
def _run(self):

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "project_extraction"
7-
version = "0.4.0"
7+
version = "0.4.1"
88
description = "Custom extractors for satellite tasks"
99
dynamic = [ "readme" ]
1010
keywords = [ "IBL", "neuro-science" ]

0 commit comments

Comments
 (0)