Hi @fkuzminov,
We’re still thinking through the root cause of the problem, but for now, I think using your suggestion of using the median value instead of the mean could help.
In custom_script.py
:
# Determine whether turbidostat dilutions are needed
if len(data) > 7:
# Take median to avoid outlier
od_values_from_file = []
for n in range(1,7):
od_values_from_file.append(data[len(data)-n][1])
average_OD = float(np.median(od_values_from_file))
This should replace the following around line 103:
if len(data) > 7:
for n in range(1,6):
average_OD = average_OD + (data[len(data)-n][1]/5)