class_docstr: Data storage for spectrum measurements
code: def __init__(self, max_history_size=100, parent=None):
      super().__init__(parent)
      self.max_history_size = max_history_size
      self.smooth = False
      self.smooth_length = 11
      self.smooth_window = "hanning"
      self.subtract_baseline = False
      self.prev_baseline = None
      self.baseline = None
      self.baseline_x = None
  
      # Use only one worker thread because it is not faster
      # with more threads (and memory consumption is much higher)
      self.threadpool = QtCore.QThreadPool()
      self.threadpool.setMaxThreadCount(1)
  
      self.reset()
  
imports: import time, sys, os
  from Qt import QtCore
  import numpy
  from qspectrumanalyzer.utils import smooth
  from qspectrumanalyzer.backends import soapy_power
label_desc: Use image node_id 1 to create a new DataStorage object from inherited base classes: QtCore with example: obj = DataStorage(max_history_size, parent)