Skip to content

Commit e170f02

Browse files
authored
Merge branch 'main' into kh-dev_snr-metrics
2 parents 386a44f + 08071ec commit e170f02

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""Init package"""
22

3-
__version__ = "0.3.31"
3+
__version__ = "0.3.32"
44

55
from .metrics.foraging_efficiency import compute_foraging_efficiency # noqa: F401
66
from .plot.plot_foraging_session import plot_foraging_session # noqa: F401

src/aind_dynamic_foraging_basic_analysis/plot/plot_fip.py

Lines changed: 2 additions & 2 deletions
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")
@@ -613,7 +613,7 @@ def compute_hierarchical_error(
613613
# Organize results
614614
for index, val in enumerate(result.index.values):
615615
bootstraps[index]["time"] = val
616-
result["hb_sem"] = [x["data_sem"] for x in bootstraps]
616+
result["hb_sem"] = [x["{}_sem".format(data_column)] for x in bootstraps]
617617

618618
return result, bootstraps
619619

0 commit comments

Comments
 (0)