What’s new in PyHDRL 1.0.1¶
PyHDRL 1.0.1 is a bug fix release.
Changed¶
Expose the hdrl.core.Value type so that it can be pickled. (!50)
Raise TypeError when using numpy.asarray on an hdrl.core.Image. numpy.asarray can only be used on the image and error attributes of a hdrl.core.Image instance individually. (!48)
Align hdrl.func.Response parameter constructors with HDRL C checks: ResponseCalcParameter allows Ap=0 (and other non-positive values); ResponseVelocityParameter no longer adds range/fit_half_win checks that C does not perform; ResponseFitParameter accepts high_abs_regions=None (C NULL) and empty fit_points. Telluric checks remain those of hdrl_response_telluric_evaluation_parameter_create.
Fixed¶
Fix pickle support for the hdrl.core.ErrorFrame type. Decoding a pickled instance did not reconstruct the instance in the correct order, swapping error code and function name. (!51)
Release cached Python type objects before the interpreter finishes shutting down, so importing hdrl no longer aborts on Python 3.15 with a pybind11 3.1 debug build. (!52)
Make indexing for hdrl.core.Image work as it works for cpl.core.Image. Use a two-level indexing proxy, matching cpl.core.Image semantics, i.e. image pixels are accessed like image[y][x]. (!49)
Make indexing for hdrl.core.ImageList work as it works for cpl.core.ImageList. Fix __getitem__ to work with negative indices. (!47)
Replace the generic class docstrings of hdrl.func.Response and the associated Response*Parameter / ResponseResult types with descriptions of their purpose, and add missing class documentation for hdrl.func.Efficiency (and its parameter types) and expand the hdrl.core.Spectrum1D / hdrl.core.Spectrum1DList class docs so that they appear usefully in the generated API pages. (!42)