[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
25/55: gnu: python-poliastro: Make compatible with latest matplotlib.
From: |
guix-commits |
Subject: |
25/55: gnu: python-poliastro: Make compatible with latest matplotlib. |
Date: |
Mon, 15 Jan 2024 07:42:23 -0500 (EST) |
rekado pushed a commit to branch wip-python-science
in repository guix.
commit 1937df47673e9707c98de3c9138bc7ec59ac5529
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Tue Jan 9 12:04:23 2024 +0100
gnu: python-poliastro: Make compatible with latest matplotlib.
* gnu/packages/astronomy.scm (python-poliastro)[arguments]: Add phase
'matplotlib-compatibility; disable test_porkchop_plotting.
Change-Id: Ie70673c69d4bdfa424e324d2848e9567360b03ef
---
gnu/packages/astronomy.scm | 18 +++++++++++++++++-
1 file changed, 17 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index 9b842621ee..4f019cb765 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -12,6 +12,7 @@
;;; Copyright © 2023 Iliya Tikhonenko <tikhonenko@mpe.mpg.de>
;;; Copyright © 2023 Andreas Enge <andreas@enge.fr>
;;; Copyright © 2023 Simon Tournier <zimon.toutoune@gmail.com>
+;;; Copyright © 2024 Ricardo Wurmus <rekado@elephly.net>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -2140,9 +2141,24 @@ of astronomical sources.")
" and not test_czml_custom_packet"
" and not test_czml_ground_station"
" and not test_czml_groundtrack"
- " and not test_czml_preamble"))
+ " and not test_czml_preamble"
+ ;; This fails with "ufunc 'isfinite' not
+ ;; supported for the input types"
+ " and not test_porkchop_plotting"))
#:phases
#~(modify-phases %standard-phases
+ (add-after 'unpack 'matplotlib-compatibility
+ (lambda _
+ (substitute* "src/poliastro/plotting/static.py"
+ (("import numpy as np.*" m)
+ (string-append m "\
+import itertools\n"))
+ (("( +)self._ax = ax.*" m indent)
+ (string-append m indent
+ "\
+self.colors =
itertools.cycle(plt.rcParams[\"axes.prop_cycle\"].by_key()[\"color\"])\n"))
+ (("color =
next\\(self._ax._get_lines.prop_cycler\\)\\[\"color\"\\]")
+ "color = next(self.colors)"))))
;; NOTE: Tests take about 7-10 minutes to pass.
(add-before 'check 'prepare-test-environment
(lambda _
- 10/55: gnu: python-imageio: Update to 2.33.1., (continued)
- 10/55: gnu: python-imageio: Update to 2.33.1., guix-commits, 2024/01/15
- 14/55: gnu: python-scikit-learn: Update to 1.3.2., guix-commits, 2024/01/15
- 17/55: gnu: Add python-cppy., guix-commits, 2024/01/15
- 20/55: gnu: python-matplotlib: Update to 3.8.2., guix-commits, 2024/01/15
- 21/55: gnu: python-seaborn: Update to 0.13.1., guix-commits, 2024/01/15
- 13/55: gnu: python-matplotx: Disable test_png test., guix-commits, 2024/01/15
- 16/55: gnu: python-umap-learn: Update to 0.5.5., guix-commits, 2024/01/15
- 22/55: gnu: Add python-pytest-nunit., guix-commits, 2024/01/15
- 23/55: gnu: python-scanpy: Update to 1.9.6., guix-commits, 2024/01/15
- 28/55: gnu: python-pyani: Disable tests., guix-commits, 2024/01/15
- 25/55: gnu: python-poliastro: Make compatible with latest matplotlib.,
guix-commits <=
- 29/55: gnu: python-pegasusio: Disable tests., guix-commits, 2024/01/15
- 30/55: gnu: python-reportlab: Update to 4.0.8., guix-commits, 2024/01/15
- 32/55: gnu: python-plastid: Update to 0.6.1., guix-commits, 2024/01/15
- 35/55: gnu: python-demuxem: Disable tests., guix-commits, 2024/01/15
- 38/55: gnu: python-fit-nbinom: Disable tests., guix-commits, 2024/01/15
- 36/55: gnu: python-cartopy: Update to 0.22.0., guix-commits, 2024/01/15
- 42/55: gnu: python-pint: Add missing input., guix-commits, 2024/01/15
- 08/55: gnu: python-tifffile: Update to 2023.12.9., guix-commits, 2024/01/15
- 15/55: gnu: python-pynndescent: Update to 0.5.11., guix-commits, 2024/01/15
- 24/55: gnu: python-cleanlab: Disable test_aux_inputs, enable other tests., guix-commits, 2024/01/15