Skip to content

Commit

Permalink
Fix statistics_overview
Browse files Browse the repository at this point in the history
  • Loading branch information
jhnnsnk committed Feb 24, 2024
1 parent 38918fd commit 9c534bb
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion mesocircuit/plotting/figures.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,15 @@ def statistics_overview(circuit, all_FRs, all_LVs, all_CCs_distances, all_PSDs):
all_CCs = {}
for X in all_CCs_distances:
if isinstance(all_CCs_distances[X], h5py._hl.group.Group):
all_CCs[X] = all_CCs_distances[X]['ccs']
try:
iter(circuit.ana_dict['ccs_time_interval'])
ccs_time_interval = circuit.ana_dict['ccs_time_interval'][0]
all_CCs[X] = all_CCs_distances[X][f'ccs_{ccs_time_interval}ms']

print('CCs in statistics_overview use only first value in list of time intervals: ' +
f'{ccs_time_interval}')
except TypeError:
all_CCs[X] = all_CCs_distances[X][f'ccs_{circuit.ana_dict["ccs_time_interval"]}ms']
else:
all_CCs[X] = np.array([])

Expand Down

0 comments on commit 9c534bb

Please sign in to comment.