Commit 47e72555 authored by Eduardo Miranda's avatar Eduardo Miranda

if there are no peaks there is no intensity, cover that error

parent e6fb85cc
......@@ -1042,7 +1042,7 @@ MStolerance to an arbitrary value"""
# if the threshold is given as a relative value make absolute value
if threshold_type == 'relative':
t[sample] = threshold * dictBasePeakIntensity[sample]
t[sample] = threshold * dictBasePeakIntensity[sample] if dictBasePeakIntensity[sample] is not None else 0 # if its none there where no peaks
t[sample] = threshold
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment