Skip to content

v1.1.0

Choose a tag to compare

@github-actions github-actions released this 29 May 07:35
· 44 commits to main since this release
c0a4c16

JASCOFiles v1.1.0

Diff since v1.0.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 XYDATA section,
  • the XYDATA section contains no parseable data points,
  • the header NPOINTS disagrees 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)