GNU bug report logs - #66454
[PATCH 0/5] gnu: Add python-spectral-cube

Previous Next

Package: guix-patches;

Reported by: Sharlatan Hellseher <sharlatanus <at> gmail.com>

Date: Tue, 10 Oct 2023 22:36:01 UTC

Severity: normal

Tags: patch

Done: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 66454 in the body.
You can then email your comments to 66454 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to andreas <at> enge.fr, efraim <at> flashner.co.il, bavier <at> posteo.net, guix-patches <at> gnu.org:
bug#66454; Package guix-patches. (Tue, 10 Oct 2023 22:36:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Sharlatan Hellseher <sharlatanus <at> gmail.com>:
New bug report received and forwarded. Copy sent to andreas <at> enge.fr, efraim <at> flashner.co.il, bavier <at> posteo.net, guix-patches <at> gnu.org. (Tue, 10 Oct 2023 22:36:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Sharlatan Hellseher <sharlatanus <at> gmail.com>
To: guix-patches <at> gnu.org
Cc: Sharlatan Hellseher <sharlatanus <at> gmail.com>
Subject: [PATCH 0/5] gnu: Add python-spectral-cube
Date: Wed, 11 Oct 2023 02:34:31 +0100
Hi Guix!

New candidates to extend Astronomical collection (it would be 100 soon).  As
usual let me know if I need to modify description or package styling.

Sharlatan Hellseher (5):
  gnu: Add python-radio-beam.
  gnu: Add python-pyavm.
  gnu: Add python-pyregion.
  gnu: Add python-aplpy.
  gnu: Add python-spectral-cube.

 gnu/packages/astronomy.scm | 204 +++++++++++++++++++++++++++++++++++++
 1 file changed, 204 insertions(+)


base-commit: fc6c910f797ea232f6019c4ca5dbd105f78928df
-- 
2.41.0





Information forwarded to andreas <at> enge.fr, efraim <at> flashner.co.il, bavier <at> posteo.net, guix-patches <at> gnu.org:
bug#66454; Package guix-patches. (Tue, 10 Oct 2023 22:41:01 GMT) Full text and rfc822 format available.

Message #8 received at 66454 <at> debbugs.gnu.org (full text, mbox):

From: Sharlatan Hellseher <sharlatanus <at> gmail.com>
To: 66454 <at> debbugs.gnu.org
Cc: Sharlatan Hellseher <sharlatanus <at> gmail.com>
Subject: [PATCH 2/5] gnu: Add python-pyavm.
Date: Wed, 11 Oct 2023 02:39:32 +0100
* gnu/packages/astronomy.scm (python-pyavm): New variable.
---
 gnu/packages/astronomy.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index 726d4b8a5b..2f059236b9 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -2161,6 +2161,29 @@ (define-public python-poppy
 interest, and which require portability between platforms or ease of scripting.")
     (license license:bsd-3)))
 
+(define-public python-pyavm
+  (package
+    (name "python-pyavm")
+    (version "0.9.6")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "PyAVM" version))
+       (sha256
+        (base32 "0vgjqvddq4a5lnmg8msm7fwqs3r6fc748xzvnhyvc387h0z8pdxk"))))
+    (build-system pyproject-build-system)
+    (propagated-inputs
+     (list python-astropy python-numpy))
+    (native-inputs
+     (list python-pillow python-pytest python-setuptools-scm))
+    (home-page "https://astrofrog.github.io/pyavm/")
+    (synopsis "Simple pure-python AVM meta-data handling")
+    (description
+     "PyAVM is a module to represent, read, and write metadata following the
+@acronym{AVM, Astronomy Visualization Metadata} standard provided by
+@url{https://www.virtualastronomy.org/avm_metadata.php, vamp} project.")
+    (license license:expat)))
+
 (define-public python-pyvo
   (package
     (name "python-pyvo")
-- 
2.41.0





Information forwarded to andreas <at> enge.fr, efraim <at> flashner.co.il, bavier <at> posteo.net, guix-patches <at> gnu.org:
bug#66454; Package guix-patches. (Tue, 10 Oct 2023 22:41:02 GMT) Full text and rfc822 format available.

Message #11 received at 66454 <at> debbugs.gnu.org (full text, mbox):

From: Sharlatan Hellseher <sharlatanus <at> gmail.com>
To: 66454 <at> debbugs.gnu.org
Cc: Sharlatan Hellseher <sharlatanus <at> gmail.com>
Subject: [PATCH 1/5] gnu: Add python-radio-beam.
Date: Wed, 11 Oct 2023 02:39:31 +0100
* gnu/packages/astronomy.scm (python-radio-beam): New variable.
---
 gnu/packages/astronomy.scm | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index 7c665cba4a..726d4b8a5b 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -3910,6 +3910,40 @@ (define-public python-rad
 Grace Roman Space Telescope.")
     (license license:bsd-3)))
 
+(define-public python-radio-beam
+  (package
+    (name "python-radio-beam")
+    (version "0.3.4")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "radio-beam" version))
+       (sha256
+        (base32 "0293hlbxb61h8js7yrvrbiw8108qn5s0rh2iy9rkhc012mzjacp0"))))
+    (build-system pyproject-build-system)
+    (propagated-inputs
+     (list python-astropy
+           python-matplotlib
+           python-numpy
+           python-scipy
+           python-six))
+    (native-inputs (list python-pytest-astropy))
+    (home-page "https://radio-beam.readthedocs.io/en/latest/")
+    (synopsis "Operations for radio astronomy beams with Astropy")
+    (description
+     "Radio Beam is a simple toolkit for reading beam information from FITS
+headers and manipulating beams.
+Some example applications include:
+@itemize
+@item Convolution and deconvolution
+@item Unit conversion (Jy to/from K)
+@item Handle sets of beams for spectral cubes with varying resolution between
+channels
+@item Find the smallest common beam from a set of beams
+@item Add the beam shape to a matplotlib plot
+@end itemize")
+    (license license:bsd-3)))
+
 (define-public python-roman-datamodels
   (package
     (name "python-roman-datamodels")
-- 
2.41.0





Information forwarded to andreas <at> enge.fr, efraim <at> flashner.co.il, bavier <at> posteo.net, guix-patches <at> gnu.org:
bug#66454; Package guix-patches. (Tue, 10 Oct 2023 22:41:02 GMT) Full text and rfc822 format available.

Message #14 received at 66454 <at> debbugs.gnu.org (full text, mbox):

From: Sharlatan Hellseher <sharlatanus <at> gmail.com>
To: 66454 <at> debbugs.gnu.org
Cc: Sharlatan Hellseher <sharlatanus <at> gmail.com>
Subject: [PATCH 3/5] gnu: Add python-pyregion.
Date: Wed, 11 Oct 2023 02:39:33 +0100
* gnu/packages/astronomy.scm (python-pyregion): New variable.
---
 gnu/packages/astronomy.scm | 40 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)

diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index 2f059236b9..684324c589 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -3449,6 +3449,46 @@ (define-public python-pynbody
 N-Chilada and RAMSES AMR outputs.")
     (license license:gpl3+)))
 
+(define-public python-pyregion
+  (package
+    (name "python-pyregion")
+    (version "2.2.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "pyregion" version))
+       (sha256
+        (base32 "0l7qb7r8fnv46mdih4m5b8jaxixgpw6m7v37dpikjkblgh0vigaw"))))
+    (build-system pyproject-build-system)
+    (arguments
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-before 'check 'build-extensions
+            (lambda _
+              ;; Cython extensions have to be built before running the tests.
+              (invoke "python" "setup.py" "build_ext" "--inplace"))))))
+    (propagated-inputs
+     (list python-astropy python-numpy python-pyparsing))
+    (native-inputs
+     (list python-cython
+           python-pytest
+           python-pytest-astropy-header
+           python-setuptools-scm))
+    (home-page "https://github.com/astropy/pyregion")
+    (synopsis "Python parser for ds9 region files")
+    (description
+     "@code{pyregion} is a python module to parse ds9 region files.  It also
+supports ciao region files.
+Features:
+@itemize
+@item ds9 and ciao region files.
+@item (physical, WCS) coordinate conversion to the image coordinate.
+@item convert regions to matplotlib patches.
+@item convert regions to spatial filter (i.e., generate mask images)
+@end itemize")
+    (license license:expat)))
+
 (define-public python-pysynphot
   (package
     (name "python-pysynphot")
-- 
2.41.0





Information forwarded to andreas <at> enge.fr, efraim <at> flashner.co.il, bavier <at> posteo.net, guix-patches <at> gnu.org:
bug#66454; Package guix-patches. (Tue, 10 Oct 2023 22:41:03 GMT) Full text and rfc822 format available.

Message #17 received at 66454 <at> debbugs.gnu.org (full text, mbox):

From: Sharlatan Hellseher <sharlatanus <at> gmail.com>
To: 66454 <at> debbugs.gnu.org
Cc: Sharlatan Hellseher <sharlatanus <at> gmail.com>
Subject: [PATCH 4/5] gnu: Add python-aplpy.
Date: Wed, 11 Oct 2023 02:39:34 +0100
* gnu/packages/astronomy.scm (python-aplpy): New variable.
---
 gnu/packages/astronomy.scm | 54 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 54 insertions(+)

diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index 684324c589..15ab071ed7 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -493,6 +493,60 @@ (define-public cfitsio
     (license (license:non-copyleft "file://License.txt"
                                    "See License.txt in the distribution."))))
 
+(define-public python-aplpy
+  (package
+    (name "python-aplpy")
+    (version "2.1.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "aplpy" version))
+       (sha256
+        (base32 "0ph9jhv4q4i4z6nkqr6hjw9148kdlnayxsn83qgv5dqn0h3nc9r8"))))
+    (build-system pyproject-build-system)
+    (propagated-inputs
+     (list python-astropy
+           python-matplotlib
+           python-numpy
+           python-pillow
+           python-pyavm
+           python-pyregion
+           python-reproject
+           python-scikit-image
+           python-shapely))
+    (native-inputs
+     (list python-pytest-astropy
+           python-pytest-mpl
+           python-semantic-version))
+    (home-page "http://aplpy.github.io")
+    (synopsis "Astronomical Plotting Library in Python")
+    (description
+     "@acronym{APLpy, the Astronomical Plotting Library in Python} is a Python
+module aimed at producing publication-quality plots of astronomical imaging data
+in FITS format.  The module uses @code{matplotlib}, a powerful and interactive
+plotting package.  It is capable of creating output files in several graphical
+formats, including EPS, PDF, PS, PNG, and SVG.
+
+Main features:
+@itemize
+@item Make plots interactively or using scripts
+@item Show grayscale, colorscale, and 3-color RGB images of FITS files
+@item Generate co-aligned FITS cubes to make 3-color RGB images
+@item Make plots from FITS files with arbitrary WCS (e.g. position-velocity)
+@item Slice multi-dimensional FITS cubes
+@item Overlay any number of contour sets
+@item Overlay markers with fully customizable symbols
+@item Plot customizable shapes like circles, ellipses, and rectangles
+@item Overlay ds9 region files
+@item Overlay coordinate grids
+@item Show colorbars, scalebars, and beams
+@item Customize the appearance of labels and ticks
+@item Hide, show, and remove different contour and marker layers
+@item Pan, zoom, and save any view as a full publication-quality plot
+@item Save plots as EPS, PDF, PS, PNG, and SVG
+@end itemize")
+    (license license:expat)))
+
 (define-public python-astroml
   (package
     (name "python-astroml")
-- 
2.41.0





Information forwarded to andreas <at> enge.fr, efraim <at> flashner.co.il, bavier <at> posteo.net, guix-patches <at> gnu.org:
bug#66454; Package guix-patches. (Tue, 10 Oct 2023 22:41:03 GMT) Full text and rfc822 format available.

Message #20 received at 66454 <at> debbugs.gnu.org (full text, mbox):

From: Sharlatan Hellseher <sharlatanus <at> gmail.com>
To: 66454 <at> debbugs.gnu.org
Cc: Sharlatan Hellseher <sharlatanus <at> gmail.com>
Subject: [PATCH 5/5] gnu: Add python-spectral-cube.
Date: Wed, 11 Oct 2023 02:39:35 +0100
* gnu/packages/astronomy.scm (python-spectral-cube): New variable.
---
 gnu/packages/astronomy.scm | 53 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 53 insertions(+)

diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index 15ab071ed7..e76e0b0952 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -2524,6 +2524,59 @@ (define-public python-astral
 elevation, solar azimuth, rahukaalam, and the phases of the moon.")
     (license license:asl2.0)))
 
+(define-public python-spectral-cube
+  (package
+    (name "python-spectral-cube")
+    (version "0.6.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "spectral-cube" version))
+       (sha256
+        (base32 "1xyqdflnz084hdx1pbrqd1jrfyyc7f8v3564rww2v1hjylzgsnnh"))))
+    (build-system pyproject-build-system)
+    (propagated-inputs
+     (list python-astropy
+           python-aplpy
+           python-casa-formats-io
+           python-dask
+           python-distributed
+           python-fsspec
+           ;; python-glue-core ; Not packed http://glueviz.org/, optional.
+           python-joblib
+           python-matplotlib
+           python-numpy
+           python-radio-beam
+           python-reproject
+           python-scipy
+           python-six
+           ;; python-yt ; Not packed https://yt-project.org/, optional.
+           python-zarr))
+    (native-inputs
+     (list ;; XXX: Introduce cycle with pvextractor, listed as extra requiremnts
+           ;; in [noviz] option.
+           ;; python-pvextractor
+           python-pytest-astropy
+           python-regions
+           python-semantic-version))
+    (home-page "https://spectral-cube.readthedocs.io/en/latest/")
+    (synopsis "Library for reading and analyzing astrophysical spectral data cubes")
+    (description
+     "The spectral-cube package provides an easy way to read, manipulate,
+analyze, and write data cubes with two positional dimensions and one spectral
+dimension, optionally with Stokes parameters.
+
+It provides the following main features:
+@itemize
+@item A uniform interface to spectral cubes, robust to the wide range of conventions
+of axis order, spatial projections, and spectral units that exist in the wild.
+@item Easy extraction of cube sub-regions using physical coordinates.
+@item Ability to easily create, combine, and apply masks to datasets.
+@item Basic summary statistic methods like moments and array aggregates.
+@item Designed to work with datasets too large to load into memory.
+@end itemize")
+    (license license:bsd-3)))
+
 (define-public python-spherical-geometry
   (package
     (name "python-spherical-geometry")
-- 
2.41.0





Information forwarded to guix-patches <at> gnu.org:
bug#66454; Package guix-patches. (Sun, 15 Oct 2023 18:19:02 GMT) Full text and rfc822 format available.

Message #23 received at 66454 <at> debbugs.gnu.org (full text, mbox):

From: Sharlatan Hellseher <sharlatanus <at> gmail.com>
To: 66454 <at> debbugs.gnu.org
Cc: Christopher Baines <mail <at> cbaines.net>,
 Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
Date: Sun, 15 Oct 2023 19:17:41 +0100
[Message part 1 (text/plain, inline)]
Hi,

It looks like QA ignored this patch series of can't process it.
[Message part 2 (text/html, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#66454; Package guix-patches. (Sun, 15 Oct 2023 18:25:02 GMT) Full text and rfc822 format available.

Message #26 received at 66454 <at> debbugs.gnu.org (full text, mbox):

From: Christopher Baines <mail <at> cbaines.net>
To: Sharlatan Hellseher <sharlatanus <at> gmail.com>
Cc: 66454 <at> debbugs.gnu.org
Subject: Re: 
Date: Sun, 15 Oct 2023 19:21:03 +0100
[Message part 1 (text/plain, inline)]
Sharlatan Hellseher <sharlatanus <at> gmail.com> writes:

> It looks like QA ignored this patch series of can't process it.

data.qa.guix.gnu.org just hasn't got around yet to processing this patch
series. Maybe it needs to be clearer, but this can be seen by looking at
[1] where it says "Yet to process revision".

1: https://qa.guix.gnu.org/issue/66454
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#66454; Package guix-patches. (Sat, 21 Oct 2023 20:02:01 GMT) Full text and rfc822 format available.

Message #29 received at 66454 <at> debbugs.gnu.org (full text, mbox):

From: Sharlatan Hellseher <sharlatanus <at> gmail.com>
To: 66454 <at> debbugs.gnu.org
Cc: Christopher Baines <mail <at> cbaines.net>
Date: Sun, 22 Oct 2023 00:00:13 +0100
Hi Guix!

Looks like QA has a green light on this patch series!

Thanks,
Oleg

-- 
… наш разум - превосходная объяснительная машина которая способна
найти смысл почти в чем угодно, истолковать любой феномен, но
совершенно не в состоянии принять мысль о непредсказуемости.

Information forwarded to guix-patches <at> gnu.org:
bug#66454; Package guix-patches. (Fri, 27 Oct 2023 14:43:02 GMT) Full text and rfc822 format available.

Message #32 received at 66454 <at> debbugs.gnu.org (full text, mbox):

From: Sharlatan Hellseher <sharlatanus <at> gmail.com>
To: 66454 <at> debbugs.gnu.org
Cc: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
Date: Fri, 27 Oct 2023 18:41:44 +0100
Hi,

A gentle ping on this issue. Let me know if it needs any modification.

Regards,
Oleg

-- 
… наш разум - превосходная объяснительная машина которая способна
найти смысл почти в чем угодно, истолковать любой феномен, но
совершенно не в состоянии принять мысль о непредсказуемости.

Reply sent to Maxim Cournoyer <maxim.cournoyer <at> gmail.com>:
You have taken responsibility. (Tue, 31 Oct 2023 17:21:02 GMT) Full text and rfc822 format available.

Notification sent to Sharlatan Hellseher <sharlatanus <at> gmail.com>:
bug acknowledged by developer. (Tue, 31 Oct 2023 17:21:02 GMT) Full text and rfc822 format available.

Message #37 received at 66454-done <at> debbugs.gnu.org (full text, mbox):

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: Sharlatan Hellseher <sharlatanus <at> gmail.com>
Cc: 66454-done <at> debbugs.gnu.org
Subject: Re: none
Date: Tue, 31 Oct 2023 13:19:51 -0400
Hi!

Sharlatan Hellseher <sharlatanus <at> gmail.com> writes:

> Hi,
>
> A gentle ping on this issue. Let me know if it needs any modification.

Nice series!  Since you sent it, radio-beam and spectral-cube had a new
version, so I've updated them.  I've also added 'python-setuptools-scm'
to their native inputs, otherwise the version metadata was missing from
their outputs and their version was incorrectly reported as '0.0.0'.

You have cumulated 579 commits thus far; I think you should apply to
become a committer; this way you could keep the various astrology
packages updated more easily.

I'd be happy to vouch for you; you clearly put a lot of efforts toward
producing high-quality packages.

-- 
Thanks,
Maxim




Information forwarded to guix-patches <at> gnu.org:
bug#66454; Package guix-patches. (Tue, 31 Oct 2023 20:28:01 GMT) Full text and rfc822 format available.

Message #40 received at 66454-done <at> debbugs.gnu.org (full text, mbox):

From: Sharlatan Hellseher <sharlatanus <at> gmail.com>
To: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
Cc: 66454-done <at> debbugs.gnu.org
Subject: Re: none
Date: Tue, 31 Oct 2023 20:26:52 +0000
[Message part 1 (text/plain, inline)]
Hi Maxim,

I've sent October Astronomy updates in separate issue
https://issues.guix.gnu.org/66778

Is there any formal process for commit access and do I need to apply? This
sounds like I can accelerate review process of astro soft an keep them
refreshed.

Regards,
Oleg

On Tue, 31 Oct 2023, 17:19 Maxim Cournoyer, <maxim.cournoyer <at> gmail.com>
wrote:

> Hi!
>
> Sharlatan Hellseher <sharlatanus <at> gmail.com> writes:
>
> > Hi,
> >
> > A gentle ping on this issue. Let me know if it needs any modification.
>
> Nice series!  Since you sent it, radio-beam and spectral-cube had a new
> version, so I've updated them.  I've also added 'python-setuptools-scm'
> to their native inputs, otherwise the version metadata was missing from
> their outputs and their version was incorrectly reported as '0.0.0'.
>
> You have cumulated 579 commits thus far; I think you should apply to
> become a committer; this way you could keep the various astrology
> packages updated more easily.
>
> I'd be happy to vouch for you; you clearly put a lot of efforts toward
> producing high-quality packages.
>
> --
> Thanks,
> Maxim
>
[Message part 2 (text/html, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#66454; Package guix-patches. (Wed, 01 Nov 2023 03:04:01 GMT) Full text and rfc822 format available.

Message #43 received at 66454-done <at> debbugs.gnu.org (full text, mbox):

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: Sharlatan Hellseher <sharlatanus <at> gmail.com>
Cc: 66454-done <at> debbugs.gnu.org
Subject: Re: none
Date: Tue, 31 Oct 2023 23:02:45 -0400
Hi,

Sharlatan Hellseher <sharlatanus <at> gmail.com> writes:

> Hi Maxim,
>
> I've sent October Astronomy updates in separate issue
> https://issues.guix.gnu.org/66778

Thanks for the heads-up.

> Is there any formal process for commit access and do I need to apply? This
> sounds like I can accelerate review process of astro soft an keep them
> refreshed.

See (info "(guix) Commit Access").  In a nutshell, you need to find 3
committers to vouch for you.  The list of current committers is kept in
.guix-authorizations at the root of the project.

-- 
Thanks,
Maxim




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 29 Nov 2023 12:24:09 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 199 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.