From ab4492a37b95a1430cba2ad4d446b23497a55f02 Mon Sep 17 00:00:00 2001 From: Mayo Faulkner Date: Fri, 27 May 2022 11:51:17 +0100 Subject: [PATCH 1/2] a few fixes to training plots --- ibllib/pipes/training_status.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ibllib/pipes/training_status.py b/ibllib/pipes/training_status.py index 5922be388..bdbd3729d 100644 --- a/ibllib/pipes/training_status.py +++ b/ibllib/pipes/training_status.py @@ -420,7 +420,7 @@ def plot_performance_easy_median_reaction_time(df, subject): y2 = {'column': 'combined_reaction_time', 'title': 'Median reaction time (s)', - 'lim': [0.1, np.max([10, np.max(df.combined_reaction_time.values)])], + 'lim': [0.1, np.nanmax([10, np.nanmax(df.combined_reaction_time.values)])], 'log': True} ax = plot_over_days(df, y1, y2, subject) @@ -548,6 +548,9 @@ def make_plots(session_path, one, df=None, save=False, upload=False): df = df[df['task_protocol'] != 'habituation'] + if len(df) == 0: + return + ax1 = plot_trial_count_and_session_duration(df, subject) ax2 = plot_performance_easy_median_reaction_time(df, subject) ax3 = plot_heatmap_performance_over_days(df, subject) From 7ac90a1c76b9a0ba6f115d7d41612ce3407082c8 Mon Sep 17 00:00:00 2001 From: Mayo Faulkner Date: Fri, 27 May 2022 14:13:53 +0100 Subject: [PATCH 2/2] release notes and setup --- ibllib/__init__.py | 2 +- release_notes.md | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ibllib/__init__.py b/ibllib/__init__.py index 14e719b16..ebb18822e 100644 --- a/ibllib/__init__.py +++ b/ibllib/__init__.py @@ -1,4 +1,4 @@ -__version__ = "2.12.1" +__version__ = "2.12.2" import warnings from ibllib.misc import logger_config diff --git a/release_notes.md b/release_notes.md index 64652483c..f264f004f 100644 --- a/release_notes.md +++ b/release_notes.md @@ -1,4 +1,6 @@ ## Release Notes 2.12 +## Release Noter 2.12.2 2022-05-27 +- Fixes to plotting in training_status ## Release Notes 2.12.1 2022-05-26 - ibllib.pipes.training_status: pipeline to compute training status of mice on local servers, new TrainingStatus task (Mayo)