Repository navigation
engiNIR 1.8.0
Inline prediction of new scans, as a chemometric engine for production lines
(e.g. every printed layer of a tablet batch, per tablet): per-tablet
statistics of a layout on a scan that is never registered, the reference
choices of add_dataset in Model.predict, the model's wavelength axis for
band-number files, a check of a file before predicting it, and a public
surface for reading models and scans. The format stays enginir-1.7; nothing
needs refitting.
Added
- Per-tablet statistics of a scan that is not registered:
prediction.roi_statistics(layout)andprediction.roi_prediction(layout)
apply a layout of cells (GridCell, e.g. fromroi_grid) to a
prediction, with the statistics, DModX exclusion and outside-the-model rule
ofModel.predict_rois, computed by the same function. For production
lines that predict every new scan (a layer of a print job) per tablet. Model.predicttakes the reference choices ofProject.add_dataset:
dark_frames/white_framesof the scan andblack_level/white_level,
besidesdark/white; levels exclude references. A registered scan given
references or levels is corrected anew in memory instead of with its stored
correction.- A new scan with band numbers only is predicted on the model's
wavelength axis when the band counts match (or with
wavelength_table=), without the "no wavelengths" warning for every file. Model.check_file(path, ...)says whyModel.predictwould refuse a
file with the same reference choices (its message), orNone, reading the
header but not the pixels: for checking a setup before scans arrive.Model.id(the stable model run id) andModel.input_contract(a
copy: band count, wavelength axis, signal unit, reference correction mode,
binning).GridCell,roi_grid,read_headerandread_framesare exported from
enginir; a layout is drawn on a scan read with the model's binning.- The package declares its type hints (
py.typed).