Skip to content

Commit

Permalink
ready for 8.12.3
Browse files Browse the repository at this point in the history
  • Loading branch information
bimac committed Nov 2, 2023
1 parent 2db0869 commit a9b3b32
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
Changelog
---------

8.12.3
------
* bugfix: getting training status of subject not present on local server
* skipping of bpod initialization now optional (used in GUI)
* disable button for status LED if not supported by hardware
* tests, type-hints, removal of dead code

8.12.2
------
* bugfix: rollback skipping of bpod initialization (possible source of integer overflow)
Expand Down
4 changes: 3 additions & 1 deletion iblrig/base_choice_world.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,9 @@ def draw_next_trial_info(self, pleft=0.5, contrast=None, position=None):
contrast = misc.draw_contrast(self.task_params.CONTRAST_SET, self.task_params.CONTRAST_SET_PROBABILITY_TYPE)
assert len(self.task_params.STIM_POSITIONS) == 2, "Only two positions are supported"
position = position or int(np.random.choice(self.task_params.STIM_POSITIONS, p=[pleft, 1 - pleft]))
quiescent_period = self.task_params.QUIESCENT_PERIOD + misc.truncated_exponential(scale=0.35, min_value=0.2, max_value=0.5)
quiescent_period = self.task_params.QUIESCENT_PERIOD + misc.truncated_exponential(scale=0.35,
min_value=0.2,
max_value=0.5)
self.trials_table.at[self.trial_num, 'quiescent_period'] = quiescent_period
self.trials_table.at[self.trial_num, 'contrast'] = contrast
self.trials_table.at[self.trial_num, 'stim_phase'] = random.uniform(0, 2 * math.pi)
Expand Down
2 changes: 1 addition & 1 deletion iblrig/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import datetime
import logging
from pathlib import Path
from typing import Optional, Union, Literal, Iterable
from typing import Optional, Union, Literal

import numpy as np

Expand Down

0 comments on commit a9b3b32

Please sign in to comment.