Skip to content

Updates for compatibility with recent updates#37

Open
mohller wants to merge 11 commits intojoheinze:masterfrom
mohller:master
Open

Updates for compatibility with recent updates#37
mohller wants to merge 11 commits intojoheinze:masterfrom
mohller:master

Conversation

@mohller
Copy link
Copy Markdown

@mohller mohller commented Apr 8, 2026

This PR addresses incompatibilities in the code with recent versions of SciPy. In particular, fixes to avoid deprecated functions (trapz, cumtrapz, interp2d) and some other fixes to address issues produced by the updated functions. The largest piece of code is a trivial class to hold the interpolating function for ebl models, in order to address the deprecation of interp2d properly. This class was needed in particular to allow pickle.dump of the kernel, as a simpler lambda function (see 98c8871 and 4e5a0fb) worked well, but raised errors when trying to pickle.dump a precomputed kernel.
This updates have been verified by running the three basic examples in https://github.com/joheinze/PriNCe-examples#1c6e7930c5edbe13c41910c61ce09c86eb491e65 which was not possible before the changes in this PR when using the latest SciPy 1.17.

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