[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
25/59: gnu: python-poliastro: Make compatible with latest matplotlib.
|
From: |
guix-commits |
|
Subject: |
25/59: gnu: python-poliastro: Make compatible with latest matplotlib. |
|
Date: |
Tue, 16 Jan 2024 07:16:24 -0500 (EST) |
rekado pushed a commit to branch master
in repository guix.
commit efd98a9c450c7783c45214d03e65ac409ae9864c
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 _
- 04/59: gnu: Add python-pyproject-metadata-0.7., (continued)
- 04/59: gnu: Add python-pyproject-metadata-0.7., guix-commits, 2024/01/16
- 07/59: gnu: python-scipy: Update to 1.11.4., guix-commits, 2024/01/16
- 05/59: gnu: Add python-pydevtool., guix-commits, 2024/01/16
- 02/59: gnu: Add pybind11-2.10., guix-commits, 2024/01/16
- 06/59: gnu: meson-python: Update to 0.15.0., guix-commits, 2024/01/16
- 12/59: gnu: python-pypng: Update to 0.20220715.0., guix-commits, 2024/01/16
- 18/59: gnu: python-kiwisolver: Update to 1.4.5., guix-commits, 2024/01/16
- 27/59: gnu: tadbit: Add missing input., guix-commits, 2024/01/16
- 28/59: gnu: python-pyani: Disable tests., guix-commits, 2024/01/16
- 15/59: gnu: python-pynndescent: Update to 0.5.11., guix-commits, 2024/01/16
- 25/59: gnu: python-poliastro: Make compatible with latest matplotlib.,
guix-commits <=
- 31/59: gnu: cnvkit: Update to 0.9.10., guix-commits, 2024/01/16
- 32/59: gnu: python-plastid: Update to 0.6.1., guix-commits, 2024/01/16
- 39/59: gnu: python-scikit-optimize: Make compatible with latest sklearn., guix-commits, 2024/01/16
- 37/59: gnu: scvelo: Make compatible with latest matplotlib., guix-commits, 2024/01/16
- 38/59: gnu: python-fit-nbinom: Disable tests., guix-commits, 2024/01/16
- 40/59: gnu: python-hicmatrix: Update to 17.1., guix-commits, 2024/01/16
- 42/59: gnu: python-pint: Add missing input., guix-commits, 2024/01/16
- 41/59: gnu: python-hicexplorer: Make compatible with latest scipy., guix-commits, 2024/01/16
- 44/59: gnu: Add python-asyncinject., guix-commits, 2024/01/16
- 52/59: gnu: python-xarray: Update to 2023.12.0., guix-commits, 2024/01/16