Skip to content

Bump cuvis.swig for the reference-spectrum shims - #40

Merged
birkholz-cubert merged 4 commits into
developfrom
feature/reference-spectrum-shims
Sep 10, 2026
Merged

birkholz-cubert merged 4 commits into
developfrom
feature/reference-spectrum-shims

Conversation

@birkholz-cubert

@birkholz-cubert birkholz-cubert commented Aug 27, 2026 •

Copy link
Copy Markdown
Collaborator

What

  • Points the cuvis.swig submodule at the reference-spectrum shims (Wrap the reference-spectrum C API for numpy callers cuvis.swig#16), exposing cuvis_proc_cont_set_reference_spectrum_swig, ..._set_reference_spectrum_counts_swig, ..._get_reference_spectrum_swig and ..._get_reference_spectrum_counts_swig plus the Reference_WhiteSpectrum / Reference_TargetSpectrum enum constants to Python.

Why

  • cuvis.python gains ProcessingContext support for the two new spectrum reference slots (white counts spectrum, target reflectance spectrum) and needs the binding layer to carry them.

Pitfalls

  • Depends on Wrap the reference-spectrum C API for numpy callers cuvis.swig#16 being merged first, and on a cuvis build whose cuvis.h declares and cuvis.dll/.so exports the five *_reference_spectrum* functions; the wheel must be rebuilt against that SDK.
  • Against an older installed cuvis library the loader stubs the missing functions: import warns, calling them raises, everything else keeps working.

Brings in the numpy typemaps and inline shims for the five
cuvis_proc_cont_*_reference_spectrum* functions
(cubert-hyperspectral/cuvis.swig#16).
@birkholz-cubert
birkholz-cubert force-pushed the feature/reference-spectrum-shims branch from fd1d367 to 740623f Compare September 10, 2026 07:58
@birkholz-cubert
birkholz-cubert merged commit 70b60f8 into develop Sep 10, 2026
33 checks passed
@birkholz-cubert
birkholz-cubert deleted the feature/reference-spectrum-shims branch September 10, 2026 08:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant