Skip to content

v2.0.0

Choose a tag to compare

@github-actions github-actions released this 11 Jun 05:07
· 17 commits to main since this release
d9dd7c0

JASCOFiles v2.0.0

Diff since v1.3.0

JASCOFiles v2.0.0

Breaking changes

  • transmittance_to_absorbance(s) now infers the transmittance scale from yunits ("TRANSMITTANCE" = JASCO %T, "TRANSMITTANCE_FRAC" = fractional); an explicit percent keyword overrides the inference and is required for any other yunits. Nonpositive transmittance (saturated bands) maps to NaN with a warning instead of erroring.
  • absorbance_to_transmittance(s; percent) requires the percent keyword and rejects input that is already transmittance.
  • Conversions output yunits = "ABSORBANCE" (the string JASCO instruments write) instead of the invented "ABS".
  • JASCOSpectrum.date is now Union{DateTime, Nothing}: files without a parseable timestamp give nothing instead of a fabricated DateTime(2000) sentinel.
  • Missing header fields default to "" instead of "Unknown"/"cm-1"/"Abs" placeholders.
  • The CSV data section is strict: unparseable rows throw (with an NPOINTS-aware footer fallback for exports lacking the blank separator), and header FIRSTX/NPOINTS are cross-checked against the parsed data.
  • Base.length(::JASCOSpectrum) and Base.size removed — use length(s.x) or the Tables.jl interface.

New features

  • Legacy .jws support (Spectra Manager 1.x OLE-container format): FTIR and NRS-series Raman, including non-linear CCD x-axes, UTF-16 metadata, named FTIR acquisition parameters, and UTC timestamps. The two binary generations share the .jws extension and are dispatched on magic bytes through the same JASCOSpectrum(path) entry point. Validated against a 445-file archive with paired CSV exports agreeing at every data point.
  • Keyword constructor JASCOSpectrum(; x, y, ...) and copy constructor JASCOSpectrum(s; fields...) with x/y length validation.
  • Modern binary y-mode 0x08 (FTIR single-beam background channel).
  • Date parsing accepts both two- and four-digit-year JASCO variants.

Merged pull requests:

  • JASCOFiles 2.0: unit-aware conversions, honest dates, legacy .jws reader (#23) (@garrekstemo)