Commit e053c026 authored by Yan's avatar Yan
Browse files

Fixed slow chromatogram routine - support for ms2

parent 1ad0289e
......@@ -14,7 +14,7 @@ from . import zcetools_help
from . import reactivitytools
__version__ = "0.0.52"
__version__ = "0.0.53"
__all__ = ['config', 'datatools', 'docks', 'drltools', 'datasets',
......
......@@ -178,7 +178,7 @@ class BrukerTimsDataset(Dataset):
# devNote - summing is fast, asarray is fast, iterating is slow.
intensities = np.asarray([
np.sum(i['intensity']) for i in self.dataset.query_iter(
self.dataset.ms1_frames, columns=('intensity',))])
np.arange(self.dataset.max_frame)+1, columns=('intensity',))])
logger.info("DONE: getting timsTOF chromatogram")
return [[times, intensities]]
......
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