Commit 09c75608 authored by Yan's avatar Yan
Browse files

Added sampling to settings

parent 5f4240dd
......@@ -39,7 +39,8 @@ def settings():
("imggen/reactspecspec_dpi", 300),
("reactivity/index", 0),
("reactivity/activetab", 0),
("recents", "")}
("recents", ""),
("timstof/sampling", 500)}
[settings.setValue(*i)
for i in defvals if not settings.contains(i[0])]
return settings
......@@ -135,6 +136,13 @@ def dial(parent):
"Manual annotation only", "imggen/msspec_onlymanann", config))
tabs.addTab(imggentab, "Image clip/export")
timstoftab = QtWidgets.QWidget()
timstoflayout = QtWidgets.QVBoxLayout(timstoftab)
timstoflayout.addLayout(posvarconf(
"Maximum number of samples", "timstof/sampling", config))
tabs.addTab(timstoftab, "timsTOF")
close_button = QtWidgets.QPushButton("Close")
close_button.clicked.connect(dialog.close)
......
......@@ -146,7 +146,7 @@ class BrukerTimsDataset(Dataset):
#TODO: set in config
frames = dt.argsubselect(self.dataset.retention_times,
mint*60, maxt*60) + 1
timescap = 500
timescap = cf.settings().value("timstof/sampling", type=int)
framessel = frames if timescap >= len(frames) else np.linspace(
frames[0], frames[-1], timescap).astype('int')
massints = self.dataset.query(framessel, columns=('mz', '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