convert numpy bool_ scalar to python bool

This commit is contained in:
2025-07-08 18:57:31 +02:00
parent 9bfe0cc8c5
commit da8141b687

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