Skip to content

Commit cbae43a

Browse files
committed
Merge branch 'sp_tonotopic' of https://github.com/int-brain-lab/project_extraction into sp_tonotopic
2 parents d37f1a4 + b2b58a2 commit cbae43a

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

iblrig_custom_tasks/samuel_tonotopicMapping/task.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ class Session(BpodMixin, BaseSession):
2424
protocol_name = 'samuel_tonotopicMapping'
2525
TrialDataModel = TonotopicMappingTrialData
2626

27-
frequencies: list[int] = []
28-
sequence: list[int] = []
27+
frequencies: np.ndarray = np.array([])
28+
sequence: np.ndarray = np.array([])
2929
trial_num: int = -1
3030

3131
def __init__(self, *args, **kwargs):
@@ -114,7 +114,7 @@ def start_mixin_sound(self):
114114
bpod_action = (module_port, self.bpod._define_message(self.bpod.sound_card, bpod_message))
115115
self.bpod.actions.update({f'freq_{frequency_idx}': bpod_action})
116116

117-
self.bpod.softcode_handler_function = Session.softcode_handler
117+
self.bpod.softcode_handler_function = self.softcode_handler
118118

119119
def start_hardware(self):
120120
self.start_mixin_bpod()
@@ -145,7 +145,7 @@ def get_state_machine(self, trial_number: int) -> StateMachine:
145145

146146
# build state machine
147147
sma = StateMachine(self.bpod)
148-
for state_idx, frequency_idx in enumerate(Session.sequence):
148+
for state_idx, frequency_idx in enumerate(self.sequence):
149149
sma.add_state(
150150
state_name=self.get_state_name(state_idx),
151151
state_timer=self.task_params['d_sound'] + self.task_params['d_pause'],

pyproject.toml

Lines changed: 6 additions & 6 deletions
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.8.4"
7+
version = "0.9.0"
88
description = "Custom extractors for satellite tasks"
99
dynamic = [ "readme" ]
1010
keywords = [ "IBL", "neuro-science" ]
@@ -24,11 +24,6 @@ readme = { file = "README.md", content-type = "text/markdown" }
2424
find = {}
2525

2626
[tool.ruff]
27-
ignore = [
28-
"PLR0912", # Too many branches
29-
"PLR0915", # Too many statements
30-
"PLR2004", # Magic value used in comparison, consider replacing with a constant variable
31-
]
3227
exclude = [
3328
".mypy_cache",
3429
"dist",
@@ -52,6 +47,11 @@ select = [
5247
"SIM", # flake8-simplify
5348
"UP", # pyupgrade
5449
]
50+
ignore = [
51+
"PLR0912", # Too many branches
52+
"PLR0915", # Too many statements
53+
"PLR2004", # Magic value used in comparison, consider replacing with a constant variable
54+
]
5555

5656
[tool.ruff.format]
5757
quote-style = "single"

0 commit comments

Comments
 (0)