What’s new in PyCPL 1.0.5

PyCPL 1.0.5 is a bug fix release.

Fixed

  • Fix a possible assertion error of the Python interpreter due to an invalid GIL. This may happen because of a too late destruction of cached pybind11::object instances when using Python 3.15. (!231)

  • Recognize NumPy arrays of complex numbers as native CPL formats. (!229)

  • Fix pickle support for the cpl.core.ErrorFrame type. Decoding a pickled instance did not reconstruct the instance in the correct order, swapping error code and function name. See PIPE-13114.

  • Fix pytest deprecation warning. Module-scoped fixtures defined as instance methods are deprecated. (!230)

  • Fix unit test test_fit using a test local random number generator seed. The unit test could fail due to the history of the random number stream. Reset the random number generator seed at the start of the test with a fixed seed. (!227)

  • Fix randomly failing offset_saa_kernels test with deterministic offsets. Fixed offsets avoid Kernel.NEAREST half-pixel phases that yield NaNs. Match CPL integer division in comparison with expected values. (!226)

  • Fix incorrect stride test with an explicit C-contiguous layout check, avoiding the unintended use of slow fallback conversion path when converting NumPy arrays to a cpl.core.Image. (!224)

  • Fix 2D Matrix __getitem__ so that a slice is not converted to a C/C++ integer, which causes a segfault under pybind 3.1. (!223, !225)

  • Fix failing integer parameter assignement when using pybind11 3.1. With Pybind 3.1 a Python int can match double/complex in the no-convert pass. That makes inferred Property/Parameter types wrong when float/double alternatives are decleared before integer types in std::variant declarations. (!223)

  • Fix dangling zone_def pointer in cpl.drs.detector.get_noise_window and get_bias_window. Passing a window no longer raises IllegalInputError from inside CPL. (!222)