Repository navigation
v2.0.0
JASCOFiles v2.0.0
JASCOFiles v2.0.0
Breaking changes
transmittance_to_absorbance(s)now infers the transmittance scale fromyunits("TRANSMITTANCE" = JASCO %T, "TRANSMITTANCE_FRAC" = fractional); an explicitpercentkeyword overrides the inference and is required for any otheryunits. Nonpositive transmittance (saturated bands) maps to NaN with a warning instead of erroring.absorbance_to_transmittance(s; percent)requires thepercentkeyword and rejects input that is already transmittance.- Conversions output
yunits = "ABSORBANCE"(the string JASCO instruments write) instead of the invented "ABS". JASCOSpectrum.dateis nowUnion{DateTime, Nothing}: files without a parseable timestamp givenothinginstead of a fabricatedDateTime(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)andBase.sizeremoved — uselength(s.x)or the Tables.jl interface.
New features
- Legacy
.jwssupport (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.jwsextension and are dispatched on magic bytes through the sameJASCOSpectrum(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 constructorJASCOSpectrum(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)