Skip to content

engiNIR 1.8.0

Choose a tag to compare

@TUstudents TUstudents released this 24 Nov 10:34
· 3 commits to main since this release

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) and prediction.roi_prediction(layout)
    apply a layout of cells (GridCell, e.g. from roi_grid) to a
    prediction, with the statistics, DModX exclusion and outside-the-model rule
    of Model.predict_rois, computed by the same function. For production
    lines that predict every new scan (a layer of a print job) per tablet.
  • Model.predict takes the reference choices of Project.add_dataset:
    dark_frames/white_frames of the scan and black_level/white_level,
    besides dark/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 why Model.predict would refuse a
    file with the same reference choices (its message), or None, reading the
    header but not the pixels: for checking a setup before scans arrive.
  • Model.id (the stable model run id) and Model.input_contract (a
    copy: band count, wavelength axis, signal unit, reference correction mode,
    binning).
  • GridCell, roi_grid, read_header and read_frames are exported from
    enginir; a layout is drawn on a scan read with the model's binning.
  • The package declares its type hints (py.typed).