ENLIGHTEN
Cross-platform desktop GUI for Wasatch Photonics spectrometers
Loading...
Searching...
No Matches
enlighten.post_processing.InterpolationFeature.InterpolationFeature Class Reference

Encapsulates interpolation of a ProcessedReading. More...

Public Member Functions

 __init__ (self, ctl)
 
 __repr__ (self)
 
 check_allowed (self)
 
 generate_excitation (self, wavelengths, wavenumbers, settings)
 
 init_from_config (self)
 
 process (self, pr, save=True)
 This does dark and reference as well as processed and raw.
 
 total_pixels (self)
 
 update_visibility (self)
 

Public Attributes

bool allowed = False
 
 bt_toggle = cfu.pushButton_interp_toggle
 
 cb_enabled = cfu.checkBox_save_interpolation_enabled
 
 ctl = ctl
 
 dsb_end = cfu.doubleSpinBox_save_interpolation_end
 
 dsb_incr = cfu.doubleSpinBox_save_interpolation_incr
 
 dsb_start = cfu.doubleSpinBox_save_interpolation_start
 
bool enabled = not self.cb_enabled.isChecked()
 
 end = self.dsb_end.value()
 
 incr = self.dsb_incr.value()
 
 mutex = QtCore.QMutex()
 
 new_axis = None
 
 rb_wavelength = cfu.radioButton_save_interpolation_wavelength
 
 rb_wavenumber = cfu.radioButton_save_interpolation_wavenumber
 
 start = self.dsb_start.value()
 
 use_wavelengths = self.rb_wavelength.isChecked()
 
 use_wavenumbers = self.rb_wavenumber.isChecked()
 

Protected Member Functions

 _generate_axis (self)
 
 _toggle_callback (self)
 
 _update_widgets (self)
 Called once at init to set internal state (and apply NOOP to config).
 

Protected Attributes

 _toggle_callback
 
 _update_widgets
 

Detailed Description

Encapsulates interpolation of a ProcessedReading.

See also
ORDER_OF_OPERATIONS.md

Constructor & Destructor Documentation

◆ __init__()

enlighten.post_processing.InterpolationFeature.InterpolationFeature.__init__ ( self,
ctl )

Member Function Documentation

◆ __repr__()

enlighten.post_processing.InterpolationFeature.InterpolationFeature.__repr__ ( self)

◆ _generate_axis()

enlighten.post_processing.InterpolationFeature.InterpolationFeature._generate_axis ( self)
protected

◆ _toggle_callback()

enlighten.post_processing.InterpolationFeature.InterpolationFeature._toggle_callback ( self)
protected

◆ _update_widgets()

enlighten.post_processing.InterpolationFeature.InterpolationFeature._update_widgets ( self)
protected

Called once at init to set internal state (and apply NOOP to config).

Called again on widget interaction to update state and config.

◆ check_allowed()

enlighten.post_processing.InterpolationFeature.InterpolationFeature.check_allowed ( self)

◆ generate_excitation()

enlighten.post_processing.InterpolationFeature.InterpolationFeature.generate_excitation ( self,
wavelengths,
wavenumbers,
settings )

◆ init_from_config()

enlighten.post_processing.InterpolationFeature.InterpolationFeature.init_from_config ( self)

◆ process()

enlighten.post_processing.InterpolationFeature.InterpolationFeature.process ( self,
pr,
save = True )

This does dark and reference as well as processed and raw.

◆ total_pixels()

enlighten.post_processing.InterpolationFeature.InterpolationFeature.total_pixels ( self)

◆ update_visibility()

enlighten.post_processing.InterpolationFeature.InterpolationFeature.update_visibility ( self)

Member Data Documentation

◆ _toggle_callback

enlighten.post_processing.InterpolationFeature.InterpolationFeature._toggle_callback
protected

◆ _update_widgets

enlighten.post_processing.InterpolationFeature.InterpolationFeature._update_widgets
protected

◆ allowed

bool enlighten.post_processing.InterpolationFeature.InterpolationFeature.allowed = False

◆ bt_toggle

enlighten.post_processing.InterpolationFeature.InterpolationFeature.bt_toggle = cfu.pushButton_interp_toggle

◆ cb_enabled

enlighten.post_processing.InterpolationFeature.InterpolationFeature.cb_enabled = cfu.checkBox_save_interpolation_enabled

◆ ctl

enlighten.post_processing.InterpolationFeature.InterpolationFeature.ctl = ctl

◆ dsb_end

enlighten.post_processing.InterpolationFeature.InterpolationFeature.dsb_end = cfu.doubleSpinBox_save_interpolation_end

◆ dsb_incr

enlighten.post_processing.InterpolationFeature.InterpolationFeature.dsb_incr = cfu.doubleSpinBox_save_interpolation_incr

◆ dsb_start

enlighten.post_processing.InterpolationFeature.InterpolationFeature.dsb_start = cfu.doubleSpinBox_save_interpolation_start

◆ enabled

enlighten.post_processing.InterpolationFeature.InterpolationFeature.enabled = not self.cb_enabled.isChecked()

◆ end

enlighten.post_processing.InterpolationFeature.InterpolationFeature.end = self.dsb_end.value()

◆ incr

enlighten.post_processing.InterpolationFeature.InterpolationFeature.incr = self.dsb_incr.value()

◆ mutex

enlighten.post_processing.InterpolationFeature.InterpolationFeature.mutex = QtCore.QMutex()

◆ new_axis

enlighten.post_processing.InterpolationFeature.InterpolationFeature.new_axis = None

◆ rb_wavelength

enlighten.post_processing.InterpolationFeature.InterpolationFeature.rb_wavelength = cfu.radioButton_save_interpolation_wavelength

◆ rb_wavenumber

enlighten.post_processing.InterpolationFeature.InterpolationFeature.rb_wavenumber = cfu.radioButton_save_interpolation_wavenumber

◆ start

enlighten.post_processing.InterpolationFeature.InterpolationFeature.start = self.dsb_start.value()

◆ use_wavelengths

enlighten.post_processing.InterpolationFeature.InterpolationFeature.use_wavelengths = self.rb_wavelength.isChecked()

◆ use_wavenumbers

enlighten.post_processing.InterpolationFeature.InterpolationFeature.use_wavenumbers = self.rb_wavenumber.isChecked()

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