[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#71702] [PATCH 23/30] gnu: Add python-fast-histogram.
From: |
Sharlatan Hellseher |
Subject: |
[bug#71702] [PATCH 23/30] gnu: Add python-fast-histogram. |
Date: |
Fri, 21 Jun 2024 19:38:45 +0100 |
* gnu/packages/python-science.scm (python-fast-histogram): New variable.
Change-Id: Ibecdd87db9c132052a8eca76c01108c4f6e624c4
---
gnu/packages/python-science.scm | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm
index 401beecbcd..931f3c57d3 100644
--- a/gnu/packages/python-science.scm
+++ b/gnu/packages/python-science.scm
@@ -1519,6 +1519,38 @@ (define-public python-baycomp
higher scores.")
(license license:expat)))
+(define-public python-fast-histogram
+ (package
+ (name "python-fast-histogram")
+ (version "0.14")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "fast_histogram" version))
+ (sha256
+ (base32 "1sk9xa85cgm4sylzblwv3qr2dmm0ic06zkwxqa2xlazjiawp629r"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'check 'build-extensions
+ (lambda _
+ (invoke "python" "setup.py" "build_ext" "--inplace"))))))
+ (propagated-inputs (list python-numpy))
+ (native-inputs (list python-hypothesis python-pytest))
+ (home-page "https://github.com/astrofrog/fast-histogram")
+ (synopsis "Fast simple 1D and 2D histograms")
+ (description
+ "The fast-histogram mini-package aims to provide simple and fast
+histogram functions for regular bins that don't compromise on performance. It
+doesn't do anything complicated - it just implements a simple histogram
+algorithm in C and keeps it simple. The aim is to have functions that are fast
+but also robust and reliable. The result is a 1D histogram function here that
+is 7-15x faster than @code{numpy.histogram}, and a 2D histogram function that
+is 20-25x faster than @code{numpy.histogram2d}.")
+ (license license:bsd-3)))
+
(define-public python-fastcluster
(package
(name "python-fastcluster")
--
2.41.0
- [bug#71702] [PATCH 07/30] gnu: python-dust-extinction: Update to 1.4.1., (continued)
- [bug#71702] [PATCH 07/30] gnu: python-dust-extinction: Update to 1.4.1., Sharlatan Hellseher, 2024/06/21
- [bug#71702] [PATCH 11/30] gnu: python-pyerfa: Update to 2.0.1.4., Sharlatan Hellseher, 2024/06/21
- [bug#71702] [PATCH 12/30] gnu: python-pyvo: Update to 1.5.2., Sharlatan Hellseher, 2024/06/21
- [bug#71702] [PATCH 13/30] gnu: python-skyfield: Update to 1.49., Sharlatan Hellseher, 2024/06/21
- [bug#71702] [PATCH 17/30] gnu: python-stsci-image: Update to 2.3.9., Sharlatan Hellseher, 2024/06/21
- [bug#71702] [PATCH 20/30] gnu: python-sunpy: Update to 5.1.4., Sharlatan Hellseher, 2024/06/21
- [bug#71702] [PATCH 16/30] gnu: python-stpipe: Update to 0.5.2., Sharlatan Hellseher, 2024/06/21
- [bug#71702] [PATCH 14/30] gnu: python-spherical-geometry: Update to 1.3.2., Sharlatan Hellseher, 2024/06/21
- [bug#71702] [PATCH 18/30] gnu: python-stsci-imagestats: Update to 1.8.3., Sharlatan Hellseher, 2024/06/21
- [bug#71702] [PATCH 19/30] gnu: python-stsci-stimage: Update to 0.2.9., Sharlatan Hellseher, 2024/06/21
- [bug#71702] [PATCH 23/30] gnu: Add python-fast-histogram.,
Sharlatan Hellseher <=
- [bug#71702] [PATCH 24/30] gnu: Add python-naima., Sharlatan Hellseher, 2024/06/21
- [bug#71702] [PATCH 21/30] gnu: python-jwst: Replace reference to external configobj., Sharlatan Hellseher, 2024/06/21
- [bug#71702] [PATCH 25/30] gnu: Add python-regularizepsf., Sharlatan Hellseher, 2024/06/21
- [bug#71702] [PATCH 26/30] gnu: Add python-schwimmbad., Sharlatan Hellseher, 2024/06/21
- [bug#71702] [PATCH 27/30] gnu: Add python-statmorph., Sharlatan Hellseher, 2024/06/21
- [bug#71702] [PATCH 15/30] gnu: python-stcal: Update to 1.7.1., Sharlatan Hellseher, 2024/06/21
- [bug#71702] [PATCH 28/30] gnu: Add python-yt-astro-analysis., Sharlatan Hellseher, 2024/06/21
- [bug#71702] [PATCH 29/30] gnu: Add specification-specreduce-data., Sharlatan Hellseher, 2024/06/21
- [bug#71702] [PATCH 30/30] gnu: Add python-jwst-reffiles., Sharlatan Hellseher, 2024/06/21
- [bug#71702] [PATCH 22/30] gnu: Add python-corner., Sharlatan Hellseher, 2024/06/21