ENLIGHTEN
Cross-platform desktop GUI for Wasatch Photonics spectrometers
Loading...
Searching...
No Matches
LibraryMatching.Pearson Class Reference

Public Member Functions

 __init__ (self, plugin)
 
 generate_result (self, request, wavenumbers, spectrum)
 a simple correlation routine
 
 lazy_load_library (self)
 
 process (self, request, wavenumbers, spectrum)
 
 reset (self)
 

Public Attributes

list best_library_spectrum = None
 
 best_library_wavenumbers = None
 
list compound_names = []
 
 ctl = self.plugin.ctl
 
list library_spectra = None
 
str marquee_message = "Select library directory to perform Raman matching"
 
 plugin = plugin
 

Constructor & Destructor Documentation

◆ __init__()

LibraryMatching.Pearson.__init__ ( self,
plugin )

Member Function Documentation

◆ generate_result()

LibraryMatching.Pearson.generate_result ( self,
request,
wavenumbers,
spectrum )

a simple correlation routine

  1. find wavenumber overlap
  2. interpolate to same wavenumber axis
  3. do Pearson correlation

library spectra as list of pandas data frames self.library_spectra = list of pd-df expects return to be used as follows: for result in match_result: compounds.append(result["Name"]) scores.append(result["Score"])

◆ lazy_load_library()

LibraryMatching.Pearson.lazy_load_library ( self)

◆ process()

LibraryMatching.Pearson.process ( self,
request,
wavenumbers,
spectrum )

◆ reset()

LibraryMatching.Pearson.reset ( self)

Member Data Documentation

◆ best_library_spectrum

list LibraryMatching.Pearson.best_library_spectrum = None

◆ best_library_wavenumbers

LibraryMatching.Pearson.best_library_wavenumbers = None

◆ compound_names

list LibraryMatching.Pearson.compound_names = []

◆ ctl

LibraryMatching.Pearson.ctl = self.plugin.ctl

◆ library_spectra

LibraryMatching.Pearson.library_spectra = None

◆ marquee_message

str LibraryMatching.Pearson.marquee_message = "Select library directory to perform Raman matching"

◆ plugin

LibraryMatching.Pearson.plugin = plugin

The documentation for this class was generated from the following file: