Commit ad228110 authored by Yan's avatar Yan
Browse files

Fix - drltools

* fixed bug in Thermoset interpretation
* fixed export
parent bd500ff9
......@@ -112,9 +112,9 @@ class ThermoRawDataset(Dataset):
spectra.append([[],[]])
return spectra
def get_peakchrom(self, masstart, massend):
def get_peakchrom(self, startmass, endmass):
intensity = np.concatenate([np.divide(np.sum(subset[2].T[
dt.argsubselect(subset[1], startm, endm)].T, axis=1),
dt.argsubselect(subset[1], startmass, endmass)].T, axis=1),
np.clip(subset[0][1], np.finfo(np.float32).eps, None))
for subset in self.dataset])
return intensity
......
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