convert numpy bool_ scalar to python bool

This commit is contained in:
augustin_s committed 2025-07-08 18:58:47 +02:00
1 parent 9bfe0cc8c5
commit da8141b687
1 file changed
+1 -1
+1 -1
View File
@@ -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