Skip to content

Commit 810282c

Browse files
committed
Merge branch 'release/2.12.2'
2 parents f3148d0 + 7ac90a1 commit 810282c

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

ibllib/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "2.12.1"
1+
__version__ = "2.12.2"
22
import warnings
33

44
from ibllib.misc import logger_config

ibllib/pipes/training_status.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ def plot_performance_easy_median_reaction_time(df, subject):
420420

421421
y2 = {'column': 'combined_reaction_time',
422422
'title': 'Median reaction time (s)',
423-
'lim': [0.1, np.max([10, np.max(df.combined_reaction_time.values)])],
423+
'lim': [0.1, np.nanmax([10, np.nanmax(df.combined_reaction_time.values)])],
424424
'log': True}
425425
ax = plot_over_days(df, y1, y2, subject)
426426

@@ -548,6 +548,9 @@ def make_plots(session_path, one, df=None, save=False, upload=False):
548548

549549
df = df[df['task_protocol'] != 'habituation']
550550

551+
if len(df) == 0:
552+
return
553+
551554
ax1 = plot_trial_count_and_session_duration(df, subject)
552555
ax2 = plot_performance_easy_median_reaction_time(df, subject)
553556
ax3 = plot_heatmap_performance_over_days(df, subject)

release_notes.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
## Release Notes 2.12
2+
## Release Noter 2.12.2 2022-05-27
3+
- Fixes to plotting in training_status
24

35
## Release Notes 2.12.1 2022-05-26
46
- ibllib.pipes.training_status: pipeline to compute training status of mice on local servers, new TrainingStatus task (Mayo)

0 commit comments

Comments
 (0)