Skip to content

Commit 6760040

Browse files
committed
bug when number of tests is 1
1 parent a11573e commit 6760040

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/aind_dynamic_foraging_basic_analysis/plot

src/aind_dynamic_foraging_basic_analysis/plot/plot_fip.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ def fip_psth_stats_plot(ax, stats_df, threshold=0.05):
425425
fip_psth_stats_plot(ax, etrs['stats'], threshold=0.05)
426426
427427
"""
428-
unique_tests = stats_df["name"].unique()
428+
unique_tests = np.unique(stats_df["name"].values)
429429
colors = style.get_colors(list(unique_tests), offset=0.25, cmap_name="plasma")
430430
for test in unique_tests:
431431
significant = stats_df.query("name == @test").query("p < @threshold")

0 commit comments

Comments
 (0)