[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
56/59: gnu: python-astroml: Make compatible with recent Matplot and Scip
From: |
guix-commits |
Subject: |
56/59: gnu: python-astroml: Make compatible with recent Matplot and Scipy. |
Date: |
Tue, 16 Jan 2024 05:24:35 -0500 (EST) |
rekado pushed a commit to branch wip-python-science
in repository guix.
commit 33bdfaf4f815b88bb54207703373a87b2c76e1fe
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Mon Jan 15 17:28:12 2024 +0100
gnu: python-astroml: Make compatible with recent Matplot and Scipy.
* gnu/packages/astronomy.scm (python-astroml)[arguments]: Add phases
'matplotlib-compatibility and 'scipy-compatibility.
Change-Id: Id88cf769f705f9326f41f951403583155bcee58f
---
gnu/packages/astronomy.scm | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index 4f019cb765..1e2c3f8caa 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -572,6 +572,17 @@ Main features:
;; Do not test examples
(("testspaths = astroML doc examples")
"testspaths = astroML"))))
+ (add-after 'unpack 'matplotlib-compatibility
+ (lambda _
+ (substitute* "astroML/plotting/tools.py"
+ (("^( *)ax.(lines|patches|tables|artists|images).clear.*" _
indent type)
+ (string-append indent "for art in ax." type ":\n"
+ indent " art.remove()\n")))))
+ ;; See commit e1c779de1f0ce4cb499dbda6c23d14f76b98e430
+ (add-after 'unpack 'scipy-compatibility
+ (lambda _
+ (substitute* "astroML/dimensionality/iterative_pca.py"
+ (("sym_pos=True") "assume_a=\"pos\""))))
(add-before 'check 'pre-check
;; Some tests need this
(lambda _
- 10/59: gnu: python-imageio: Update to 2.33.1., (continued)
- 10/59: gnu: python-imageio: Update to 2.33.1., guix-commits, 2024/01/16
- 14/59: gnu: python-scikit-learn: Update to 1.3.2., guix-commits, 2024/01/16
- 16/59: gnu: python-umap-learn: Update to 0.5.5., guix-commits, 2024/01/16
- 11/59: gnu: python-scikit-image: Update to 0.22.0., guix-commits, 2024/01/16
- 26/59: gnu: python-captum: Update to 0.7.0., guix-commits, 2024/01/16
- 25/59: gnu: python-poliastro: Make compatible with latest matplotlib., guix-commits, 2024/01/16
- 27/59: gnu: tadbit: Add missing input., guix-commits, 2024/01/16
- 21/59: gnu: python-seaborn: Update to 0.13.1., guix-commits, 2024/01/16
- 45/59: gnu: datasette: Update to 1.0a7., guix-commits, 2024/01/16
- 57/59: gnu: python-clingraph: Update to 1.1.2., guix-commits, 2024/01/16
- 56/59: gnu: python-astroml: Make compatible with recent Matplot and Scipy.,
guix-commits <=
- 47/59: gnu: python-pandas: Update to 1.5.3., guix-commits, 2024/01/16
- 40/59: gnu: python-hicmatrix: Update to 17.1., guix-commits, 2024/01/16
- 09/59: gnu: python-lazy-loader: Update to 0.3., guix-commits, 2024/01/16
- 19/59: gnu: Add python-contourpy., guix-commits, 2024/01/16
- 24/59: gnu: python-cleanlab: Disable test_aux_inputs, enable other tests., guix-commits, 2024/01/16
- 55/59: gnu: python-bbknn: Update to 1.6.0., guix-commits, 2024/01/16
- 48/59: gnu: python-scikit-bio: Update to 0.5.9., guix-commits, 2024/01/16
- 51/59: gnu: python-telomerecat: Disable tests., guix-commits, 2024/01/16
- 54/59: gnu: python-geopandas: Update to 0.14.2., guix-commits, 2024/01/16
- 37/59: gnu: scvelo: Make compatible with latest matplotlib., guix-commits, 2024/01/16