From b7aad9cb9740737a5df98dd4737bdaa2888f4a06 Mon Sep 17 00:00:00 2001 From: Espen Hagen <2492641+espenhgn@users.noreply.github.com> Date: Thu, 19 Sep 2024 12:33:50 +0200 Subject: [PATCH] Fix ccs_{ccs_time_interval}ms Fixes #230 --- mesocircuit/plotting/figures.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mesocircuit/plotting/figures.py b/mesocircuit/plotting/figures.py index 1d431da..f1e40ff 100644 --- a/mesocircuit/plotting/figures.py +++ b/mesocircuit/plotting/figures.py @@ -312,10 +312,10 @@ def statistics_overview(circuit, all_FRs, all_LVs, all_CCs_distances, all_PSDs): if isinstance(all_CCs_distances[X], h5py._hl.group.Group): try: for i, ccs_time_interval in enumerate(iter(circuit.ana_dict['ccs_time_interval'])): - all_CCs[X] = all_CCs_distances[X][f'ccs_{ccs_time_interval}'] + all_CCs[X] = all_CCs_distances[X][f'ccs_{ccs_time_interval}ms'] break # plot statistics overview using only first value in list for now except TypeError as _: - all_CCs[X] = all_CCs_distances[X][f'ccs_{circuit.ana_dict["ccs_time_interval"]}'] + all_CCs[X] = all_CCs_distances[X][f'ccs_{circuit.ana_dict["ccs_time_interval"]}ms'] else: all_CCs[X] = np.array([])