Skip to content

OGK-Inspector v1.1.4

Choose a tag to compare

@vikulin vikulin released this 28 Apr 18:51
· 21 commits to master since this release

📦 OGK-Inspector v1.1.4 Release Notes

✨ Major Features:

  • Internal Log Scale Transformation:

    • Added dynamic log10 view support across all spectrum entries.
    • Values ≤1 are clamped to 1 before applying log10 to avoid -inf.
    • "LogScale" tag managed automatically in spectrum's filters list.
  • Savitzky-Golay Filter Revamp:

    • Smoothing now modifies only outputSpectrum, keeping raw counts untouched.
    • "SavitzkyGolay" tag managed automatically in filters.
    • Dynamic filter dependency: log scale applies on top of smoothing if needed.
  • Unified Output Handling:

    • Introduced outputSpectrum: MutableList<Double>? in EnergySpectrum.
    • All visual transformations (log scale, smoothing) work only on outputSpectrum.
    • resetSpectrumData() restores outputSpectrum to raw unprocessed data.
  • Flexible Filter System:

    • Filters stackable, and dependencies handled correctly.
    • Clearing filters fully resets the view to original spectrum.
    • Filters are reapplied in correct order when toggling specific filters back on.

🛠 Internal Refactorings:

  • Fully eliminated use of rawSpectrum.
  • Filters (filters list) strictly control the visual representation.
  • Added toggleSavitzkyGolayFilter() and toggleLogScaleFilter() for flexible UI interactions.
  • Added applyLogScale() and applySavitzkyGolayFilter() for selective operations.

🔥 Highlights:

  • Raw acquisition remains pristine no matter how many transformations are applied.
  • Easy to add future visual transformations (baseline correction, denoising, etc).
  • Clean separation of concerns: spectrum (raw), outputSpectrum (filtered/scaled view).

Full Changelog: 1.1.3...1.1.4


🔧 Thanks for supporting OGK-Inspector! If you find any issues or have suggestions, feel free to open an issue.