de-arrow
This commit is contained in:
@ -1,6 +1,10 @@
|
|||||||
|
|
||||||
def calc_spi_analysis(results):
|
def calc_spi_analysis(results):
|
||||||
if "spi_limit" in results and len(results["spi_limit"]) == 2:
|
if "spi_limit" not in results:
|
||||||
|
return
|
||||||
|
|
||||||
|
if len(results["spi_limit"]) != 2:
|
||||||
|
return
|
||||||
|
|
||||||
number_of_spots = 0
|
number_of_spots = 0
|
||||||
if results["roi_intensities_normalised"][0] >= results["spi_limit"][0]:
|
if results["roi_intensities_normalised"][0] >= results["spi_limit"][0]:
|
||||||
@ -9,6 +13,7 @@ def calc_spi_analysis(results):
|
|||||||
number_of_spots += 50
|
number_of_spots += 50
|
||||||
|
|
||||||
results["number_of_spots"] = number_of_spots
|
results["number_of_spots"] = number_of_spots
|
||||||
|
|
||||||
if number_of_spots > 0:
|
if number_of_spots > 0:
|
||||||
results["is_hit_frame"] = True
|
results["is_hit_frame"] = True
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user