Skip to content

Commit

Permalink
fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
bimac committed Oct 18, 2024
1 parent f53a195 commit 9801a3e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
4 changes: 0 additions & 4 deletions iblrig/base_choice_world.py
Original file line number Diff line number Diff line change
Expand Up @@ -479,10 +479,6 @@ def next_trial(self):
def default_reward_amount(self):
return self.task_params.REWARD_AMOUNT_UL

@property
def stimulus_gain(self) -> float:
return self.task_params.STIM_GAIN

def draw_next_trial_info(self, pleft=0.5, **kwargs):
"""Draw next trial variables.
Expand Down
2 changes: 1 addition & 1 deletion iblrig/base_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -1001,7 +1001,7 @@ class RotaryEncoderMixin(BaseSession, HasBpod):

@property
def stimulus_gain(self) -> float:
return self.task_params.STIM_GAIN()
return self.task_params.STIM_GAIN

def init_mixin_rotary_encoder(self):
thresholds_deg = self.task_params.STIM_POSITIONS + self.task_params.QUIESCENCE_THRESHOLDS
Expand Down
4 changes: 2 additions & 2 deletions iblrig/test/test_hardware_mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ def test_rotary_encoder_mixin(self):
"""
Instantiates a bare session with the rotary encoder mixin
"""
session = self.session
RotaryEncoderMixin.init_mixin_rotary_encoder(session)
RotaryEncoderSession = type('RotaryEncoderSession', (EmptyHardwareSession, RotaryEncoderMixin), {}) # noqa: N806
session = RotaryEncoderSession(task_parameter_file=ChoiceWorldSession.base_parameters_file, **TASK_KWARGS)
assert session.device_rotary_encoder.ENCODER_EVENTS == [
'RotaryEncoder1_1',
'RotaryEncoder1_2',
Expand Down

0 comments on commit 9801a3e

Please sign in to comment.