From da8141b6873bdf25061aac62c987049e7a68949c Mon Sep 17 00:00:00 2001 From: Sven Augustin Date: Tue, 8 Jul 2025 18:57:31 +0200 Subject: [PATCH] convert numpy bool_ scalar to python bool --- dap/algos/spiana.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dap/algos/spiana.py b/dap/algos/spiana.py index 6cbd2dc..e3d3686 100644 --- a/dap/algos/spiana.py +++ b/dap/algos/spiana.py @@ -36,7 +36,7 @@ def calc_spi_analysis(results, data): hit = (photon_percentage > spi_threshold_hit_percentage) results["number_of_spots"] = photon_percentage - results["is_hit_frame"] = hit + results["is_hit_frame"] = bool(hit) # json does not like numpy bool_ scalars