easistrain.EDD.utils.fit_detector_data

easistrain.EDD.utils.fit_detector_data(channels, raw_data, nb_peaks, boxCounter, scanNumber, detectorName)[source]
Process detector data:
  • Find the background

  • Make a first guess of peak parameters

  • Calculate a background (?)

  • Fit the data without background starting from the first guess

Parameters:
  • channels (ndarray)

  • raw_data (ndarray)

  • nb_peaks (int)

  • boxCounter (int)

  • scanNumber (int)

  • detectorName (str)