Support any additional pixel calibrations we may want to create which for whatever reason need an external file and can't be kept on the EEPROM.
More...
Support any additional pixel calibrations we may want to create which for whatever reason need an external file and can't be kept on the EEPROM.
- See also
- assets/enlighten/example_data/pixel_calibration/WP-00929.json
- Todo
- persist enable in enlighten.ini
◆ __init__()
| enlighten.post_processing.PixelCalibration.PixelCalibration.__init__ |
( |
| self, |
|
|
| ctl ) |
◆ enable_callback()
| enlighten.post_processing.PixelCalibration.PixelCalibration.enable_callback |
( |
| self | ) |
|
◆ load_config()
| enlighten.post_processing.PixelCalibration.PixelCalibration.load_config |
( |
| self, |
|
|
| pathname, |
|
|
| spec ) |
Kind of an odd approach...we want to be able to support various different PixelCalibration algorithms in the future.
I'm not sure what arguments each might use, or what ENLIGHTEN classes or Wasatch.PY settings they might talk to. For now, successful parsing of the configuration file will populate enable_func and disable_func.
Also, if we're going to break ground on a per-spectrometer configuration file (holding "factory" config data as opposed to "session" data stored in enlighten.ini), potentially for various different calibrations that for whatever reason don't fit / belong in the EEPROM, then let's keep it flexible and store this class's stuff under a PixelCalibration header.
◆ update_visibility()
| enlighten.post_processing.PixelCalibration.PixelCalibration.update_visibility |
( |
| self | ) |
|
◆ cb_enable
| enlighten.post_processing.PixelCalibration.PixelCalibration.cb_enable = cfu.checkBox_enable_pixel_correction |
◆ ctl
| enlighten.post_processing.PixelCalibration.PixelCalibration.ctl = ctl |
◆ disable_func
| enlighten.post_processing.PixelCalibration.PixelCalibration.disable_func = None |
◆ enable_callback
| enlighten.post_processing.PixelCalibration.PixelCalibration.enable_callback |
◆ enable_func
| enlighten.post_processing.PixelCalibration.PixelCalibration.enable_func = None |
The documentation for this class was generated from the following file: