diff --git a/CHANGELOG.md b/CHANGELOG.md index c8754a9fc..a1b4f4674 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/iblrig/base_choice_world.py b/iblrig/base_choice_world.py index 10fa246de..355d1f80c 100644 --- a/iblrig/base_choice_world.py +++ b/iblrig/base_choice_world.py @@ -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) diff --git a/iblrig/misc.py b/iblrig/misc.py index 8654e73cf..0a2493379 100644 --- a/iblrig/misc.py +++ b/iblrig/misc.py @@ -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