[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch wip-python-science updated: gnu: python-astroml: Make compatible
From: |
guix-commits |
Subject: |
branch wip-python-science updated: gnu: python-astroml: Make compatible with recent Matplot and Scipy. |
Date: |
Mon, 15 Jan 2024 11:29:30 -0500 |
This is an automated email from the git hooks/post-receive script.
rekado pushed a commit to branch wip-python-science
in repository guix.
The following commit(s) were added to refs/heads/wip-python-science by this
push:
new 07cc3fac35 gnu: python-astroml: Make compatible with recent Matplot
and Scipy.
07cc3fac35 is described below
commit 07cc3fac35233bd7cb30e70d4827a1ecd27d88b7
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 _
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch wip-python-science updated: gnu: python-astroml: Make compatible with recent Matplot and Scipy.,
guix-commits <=