Skip to content
Snippets Groups Projects
Commit d69afead authored by Will Sinatra's avatar Will Sinatra
Browse files

community/py3-chaospy: upgrade to 4.3.18

parent b4efb7b9
No related branches found
No related tags found
1 merge request!75724community/py3-chaospy: upgrade to 4.3.18
......@@ -2,8 +2,8 @@
# Maintainer: Will Sinatra <wpsinatra@gmail.com>
pkgname=py3-chaospy
_pkgorig=chaospy
pkgver=4.3.17
pkgrel=1
pkgver=4.3.18
pkgrel=0
pkgdesc="Numerical tool for performing uncertainty quantification"
url="https://github.com/jonathf/chaospy"
arch="noarch !x86 !armhf !armv7 !s390x !ppc64le" # assertion errors and py3-numpoly
......@@ -25,7 +25,6 @@ makedepends="
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/jonathf/chaospy/archive/refs/tags/v$pkgver.tar.gz
importlib.patch
numpy2-ptp.patch
"
builddir="$srcdir/$_pkgorig-$pkgver"
......@@ -45,7 +44,6 @@ package() {
}
sha512sums="
f37e69bbcb1f4801d6f1fbec13a5f8464fa02cf2561da5d972f248eb67aa65ff2048ada78570c9b501f8a86e049a179c65c497ee1640d8e4d5eab8b8fd35c198 py3-chaospy-4.3.17.tar.gz
3a262a907c4565269aae26df2bcec4ec75cf9d88f45552953a2143a92c1a8c990b90576924abacb7a1b80c5f0775751eaaff32594e1585ad22600b9e05002d8f py3-chaospy-4.3.18.tar.gz
5b76498a070d2864613fe0e2a29506c6a02bdb2248c842b38cf08eebcdc64fffc07f890644ee3d962a584ad83237b99bafe27dc926082ed4a904254aa6d6bc04 importlib.patch
719827b8133cc8456afde9d5bd67730afd008ccc9ce87b0496e9bcdeb096687fcb52753a65e423dfd401279b3b128aab7db70c9a747e4d46631bb0e72b725804 numpy2-ptp.patch
"
Update numpy ptp function for numpy 2.0 compatibility.
--- chaospy-4.3.17-origin/chaospy/distributions/kernel/baseclass.py
+++ chaospy-4.3.17/chaospy/distributions/kernel/baseclass.py
@@ -48,7 +48,7 @@
if h_mat is None:
if estimator_rule in ("scott", "silverman"):
- qrange = numpy.quantile(samples, [0.25, 0.75], axis=1).ptp(axis=0)
+ qrange = numpy.ptp(numpy.quantile(samples, [0.25, 0.75], axis=1), axis=0)
scale = numpy.min([numpy.std(samples, axis=1), qrange / 1.34], axis=0)
factor = samples.shape[1]
if estimator_rule == "silverman":
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment