Skip to content

Commit

Permalink
Fix template metrics sv
Browse files Browse the repository at this point in the history
  • Loading branch information
alejoe91 committed Jan 18, 2025
1 parent 4831ad0 commit 2ba92b7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/spikeinterface/widgets/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,15 +309,15 @@ def make_units_table_from_analyzer(
if analyzer.get_extension("unit_locations") is not None:
locs = analyzer.get_extension("unit_locations").get_data()
df = pd.DataFrame(locs[:, :2], columns=["x", "y"], index=analyzer.unit_ids)
all_df = pd.concat([all_df, df])
all_df.append(df)

if analyzer.get_extension("quality_metrics") is not None:
df = analyzer.get_extension("quality_metrics").get_data()
all_df = pd.concat([all_df, df])
all_df.append(df)

if analyzer.get_extension("template_metrics") is not None:
all_df = analyzer.get_extension("template_metrics").get_data()
all_df = pd.concat([all_df, df])
df = analyzer.get_extension("template_metrics").get_data()
all_df.append(df)

if len(all_df) > 0:
units_table = pd.concat(all_df, axis=1)
Expand Down

0 comments on commit 2ba92b7

Please sign in to comment.