Repository navigation
v1.1.0
JASCOFiles v1.1.0
JASCOFiles v1.1.0
Input validation (new behavior)
JASCOSpectrum(path) now fails fast with an ArgumentError when a file is
not a structurally valid JASCO spectrum, instead of silently returning an
empty/defaulted spectrum. Each message is prefixed with the file name so
batch loops report which file failed. It throws when:
- the file has no
XYDATAsection, - the
XYDATAsection contains no parseable data points, - the header
NPOINTSdisagrees with the number of parsed points, or - the parsed x and y vectors differ in length (defensive guard).
The NPOINTS check is skipped when the field is absent or non-integer, so
tab-delimited V-series UV-Vis files and other valid variants continue to parse.
This catches corrupted or accidentally-overwritten data files at read time
rather than letting them surface as confusing errors in downstream analysis.
Merged pull requests:
- Fail-fast validation: throw on invalid JASCO files instead of returning empty spectra (#17) (@garrekstemo)
- Bump version to 1.1.0 (#18) (@garrekstemo)