Changelog#

v0.12.0 (2026-10-22) - HDF5 Update#

Features added#

  • Data: - Added saving data in HDF5 files. Multiple datasets can be stored in the same file. - Multiple spectra can be merged into one; merge_parts accepts a MergeOptions parameter.

  • Interactive shell: - Settings are now managed by a PrsInteractiveSettings dataclass, with automatic renaming of legacy config keys. - Added a sample database (get_sample(), sample_db) and a setup info database. - Added user plugin loading (--no-plugins, -p/--plugin-dir, reload()). - Device connections are persisted and exited cleanly on shell close.

Significant changes#

  • Measurement: prsctrl_interactive measurements require a series name and store data in HDF5 format.

v0.11.0 (2026-08-28) - GUI Update#

Features added#

  • Measurement: - Added MeasurementParameters class for strongly-typed measurement settings. - Added PrsSettings class for pump source settings. - Added loading from parameter files. - Added proper pump light calibration feature.

  • Utility: Added MeasurementSetupInfo dataclass for setup information metadata.

  • Devices: Added device_keys module for device key definitions.

  • Documentation: Added Sphinx docstrings

Significant changes#

  • Data: - Renamed real-theta to theta-corr for corrected phase calculation. - Refactored PrsData as subclass of devctrl.data.Data. - Moved column label, color, and scale definitions to centralized _COLUMN_DATA structure.

  • Measurement: Major refactoring for preparing library for usage in prsctrl_gui: - Refactored measurement settings using SettingsClass. - Moved offset functionality to offset module. - Moved measurement time estimation to time_estimate module.

  • Dependencies: - Updated Python requirement to >=3.12. - Updated devctrl requirement to ==1.1.0.

v0.10.0 (2025-11-07)#

Significant changes#

  • Data: - Refactored PrsData as subclass of devctrl.data.Data. - Changed calculations:

    • Fixed: dont use offset in out-of-phase component

    • Introduced new theta_corr, as angle between in phase and out-of-phase components [-90°, 90°]

    • Changed keys of calculated values for more clarity: - dI-X, dI-X_I: the in-phase change - dI-Y, dI-Y_I: out-of-phase change (previously dI-Q, dI_I-Q) - dI, dI_I: magnitude change (previously dI was in-phase)

v0.9.0 (2025-07-18) - Time-based Offsets Update#

Significant changes#

  • Data: - Every wavelength/offset measurement must have a “timestamp_start”. - This allows for more accurate interpolation of offsets based on measurement timestamps.

v0.8.0 (2025-07-14)#

Features added#

  • Measurement: - Added support for dual-monochromator meausurements. - Added multiprocessing support.

  • Devices: Added Cleware Temperature+Humidity Sensor support.

Significant changes#

  • Data: - Changed offset calculation: Multiple offsets may be taken during the measurement, which can be interpolated. - Changed offset key naming. - Added sample rate in metadata.

v0.7.0 (2025-06-24) - Absorbance Update#

Features added#

  • Data: Added RTA (Reflectance/Transmittance/Absorbance) utility functions in util and plot.

  • Scripts: - Added save_data_rta() function. - Added lock-in buffer benchmarks in lock_in_benchmark.

Significant changes#

  • Data: Renamed key R, dR, dR_R to I, dI, dI_I.

v0.6.0 (2025-06-12)#

Features added#

  • Measurement: - Added dictionary based settings (and apply functions) in settings module. - Added power conversion functions for LED power calibration.

  • Data: - Added archive_data and save_data.

Significant changes#

  • Data: - Refactored device settings and measurement settings. All device settings are now stored as separate dictionaries in the metadata. - Refactored data into data/ submodules calc, functions, plot.

  • Interactive: Refactored device selection logic with a devices list for structured device management.

v0.5.0 (2025-06-02) - Transmisson Update#

Features added#

  • Data: - Added support for transmission measurements with mode key in measurement metadata. - Added mode-aware methods for plots: get_column_name(), get_column_label(), get_column_label_with_unit().

  • Measurement: - Added LockInHandler class to handle differences between different lock-in amplifiers. - Added MeasurementHandler to handle measuring multiple modes.

  • Utility: - Added color logging with ColorFormatter. - Added sanitize_filename, get_date_time_for_filename, and get_next_filename.

Significant changes#

  • Data: - Add support for transmission measurements as well (added ‘mode’ key in measurement metadata). - Enhanced data path handling.

  • Measurement: - Major refactor of measurement system from single function to class-based architecture with multi-mode support. - Added multithreading for parallel wavelength setting and data acquisition.

  • Devices: Updated device imports to use class methods instead of module functions.

  • Interactive: - measure_spectrum() creates separate data objects for reflection and transmission.

v0.4.0 (2025-05-27) - Offset Update#

Features added#

  • Data: - Added offset calculation methods (_get_theta_offset(), _get_dR_offset(), _get_R_offset()) - Added support for string keys (offsets) in the data dictionary.

  • Devices: Added dummy devices support with --dummy-devices command line argument.

Significant changes#

  • Data: - Magnitude and phase offsets are measured like any wavelength would be, and are saved next to the wavelength with key “offest_<before/after>”. - Added upgrade system to update existing data to newer prsctrl versions.

  • Measurement: Integrated offset measurement into the main wavelength measurement loop.

v0.3.0 (2025-05-19) - devctrl Update#

Significant changes#

  • Data: - Phase offset of chopper no longer included in lock-in-theta_raw. - lock-in-R no longer includes offset of laser without probe light. - lock-in-R no is longer converted to peak-peak, it is now in RMS.

  • Devices: Moved all device support to dedicated devctrl library.

Bugfixes#

  • Data: Fixed R_offset_volt calculation to properly handle percent fullscale.

v0.2.0 (2025-05-15)#

Features added#

  • Devices: Added laser support: prsctrl/devices/laser/.

  • Data: Enhanced prsctrl/utility/prsdata.py to support energy values in eV.

Significant changes#

  • Data: - Renames:

    • theta_raw -> lock-in-theta

    • dR -> lock-in-R

    • dR = lock-in-R * cos(theta) (so equivalent to X)

  • Devices: Moved all device classes to prsctrl/devices/.

Bugfixes#

  • Measurement: Fixed offsets not saved.

v0.1.0#

Initial version.