Skip to content

Commit

Permalink
fix asselblies when there is no significant detected assemblies
Browse files Browse the repository at this point in the history
  • Loading branch information
bouromain committed Mar 5, 2024
1 parent e09836b commit e99d0a2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hippocampy/assemblies.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ def calc_template(

n_assemblies = np.sum(significant_vals)

if n_assemblies ==0:
return [], correlation_matrix

if method == "PCA":
template = eigvecs[:, :n_assemblies]

Expand Down

0 comments on commit e99d0a2

Please sign in to comment.