Skip to content
Commit 1e65f7ea authored by Jan.Reimes's avatar Jan.Reimes
Browse files

refactor(spectrum): centralize spectrum argument validation with SpectralArguments dataclass

- Introduce new SpectralArguments dataclass for consistent spectrum parameter handling
- Replace scattered argument validation with centralized check_spectrum_arguments function
- Update function signatures across calculate_nlm and estimate_ir_csd to use new structure
- Extract spectrum parameters into dedicated defaults.yaml configuration
- Add from_kwargs utility for flexible dataclass instantiation from kwargs

This refactoring improves maintainability by consolidating spectrum analysis configuration and removing duplicate validation logic throughout the codebase.
parent f9ae4be5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment