convert numpy bool_ scalar to python bool
This commit is contained in:
@ -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
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user