How isitadvait/multi-function-spectrometer works
This is a desktop optical spectrometer analyzer. Its main workflow is to acquire live spectra, capture Baseline/Standard/Sample measurements in R₀, R₆₀, or transmission modes, then inspect, process, and export the measurements; its Nd/Nk tools fit thin-film properties. A separate small entry point, main.py, provides a real-time plotting view. The user guide documents the UI/worker architecture and analysis capabilities; sampled excerpts do not expose all internal call sites, so edges for documented workflows cite the guide.
Main entry points: app.py Analyzer Window · hardware.py Acquisition Worker · main.py Realtime Entry Point · thin_film.py Thin-Film Fits
Components 15
Analyzer UI
- Analyzer Window
app.py - Mode Captures
app.py - Capture Data
app.py - Live Plot
app.py
Spectral Acquisition
- Acquisition Worker
hardware.py - Mock Spectrometer
hardware.py
Spectral Analysis
- Post-Process Viewer
app.py - Spectral Conditioning
app.py - CSV and Images
app.py - Nd/Nk Fitting UI
app.py - Thin-Film Fits
thin_film.py
Realtime Viewer
- Realtime Entry Point
main.py - Realtime Plot
main.py
Other components
- Lab User
- Ocean Optics Device
Connections 16
- Lab User → Analyzer Window: operates
- Analyzer Window → Acquisition Worker: controls
app.py - Acquisition Worker → Ocean Optics Device: acquires from
- Acquisition Worker → Mock Spectrometer: falls back to
hardware.py - Acquisition Worker → Live Plot: emits spectra to
app.py - Analyzer Window → Mode Captures: selects captures
app.py - Mode Captures → Capture Data: stores spectra
app.py - Capture Data → Live Plot: overlays captures
app.py - Analyzer Window → Post-Process Viewer: opens
app.py - Post-Process Viewer → Spectral Conditioning: conditions spectra
app.py - Post-Process Viewer → CSV and Images: exports results
app.py - Analyzer Window → Nd/Nk Fitting UI: provides fitting tools
app.py - Nd/Nk Fitting UI → Thin-Film Fits: uses fit calculations
app.py - Lab User → Realtime Entry Point: opens
main.py - Realtime Entry Point → Ocean Optics Device: reads spectra
main.py - Realtime Entry Point → Realtime Plot: updates
main.py