From 486251d4400fead42c3570ad63d98a10786e8dbb Mon Sep 17 00:00:00 2001 From: Antero Mejr Date: Fri, 24 Jun 2022 12:50:33 +0000 Subject: gnu: Add python-deepdish. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/python-science.scm (python-deepdish): New variable. Signed-off-by: Ludovic Courtès --- gnu/packages/python-science.scm | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) (limited to 'gnu/packages/python-science.scm') diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm index 35daef2815..747c84d493 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm @@ -1367,3 +1367,39 @@ for parameterized model creation and handling. Its features include: Python, from the Sheffield machine learning group. GPy implements a range of machine learning algorithms based on GPs.") (license license:bsd-3))) + +(define-public python-deepdish + (package + (name "python-deepdish") + (version "0.3.7") + (source (origin + (method url-fetch) + (uri (pypi-uri "deepdish" version)) + (sha256 + (base32 + "1wqzwh3y0mjdyba5kfbvlamn561d3afz50zi712c7klkysz3mzva")))) + (arguments + (list #:phases #~(modify-phases %standard-phases + (add-after 'unpack 'dont-vendor-six + (lambda _ + (delete-file "deepdish/six.py") + (substitute* "deepdish/io/hdf5io.py" + (("from deepdish import six") "import six")) + (substitute* "deepdish/io/ls.py" + (("from deepdish import io, six, __version__") + "from deepdish import io, __version__ +import six +"))))))) + (build-system python-build-system) + (native-inputs (list python-pandas)) + (propagated-inputs (list python-numpy python-scipy python-six + python-tables)) + (home-page "https://github.com/uchicago-cs/deepdish") + (synopsis "Python library for HDF5 file saving and loading") + (description + "Deepdish is a Python library to load and save HDF5 files. +The primary feature of deepdish is its ability to save and load all kinds of +data as HDF5. It can save any Python data structure, offering the same ease +of use as pickling or @code{numpy.save}, but with the language +interoperability offered by HDF5.") + (license license:bsd-3))) -- cgit v1.2.3 From 684c718e6a2fe47ea0f44f112cc2edf40df6a158 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Thu, 7 Jul 2022 14:28:05 +0200 Subject: gnu: Add python-opt-einsum. * gnu/packages/python-science.scm (python-opt-einsum): New variable. --- gnu/packages/python-science.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'gnu/packages/python-science.scm') diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm index 747c84d493..428ce48b53 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm @@ -1403,3 +1403,35 @@ data as HDF5. It can save any Python data structure, offering the same ease of use as pickling or @code{numpy.save}, but with the language interoperability offered by HDF5.") (license license:bsd-3))) + +(define-public python-opt-einsum + (package + (name "python-opt-einsum") + (version "3.3.0") + (source (origin + (method url-fetch) + (uri (pypi-uri "opt_einsum" version)) + (sha256 + (base32 + "0jb5lia0q742d1713jk33vlj41y61sf52j6pgk7pvhxvfxglgxjr")))) + (build-system python-build-system) + (arguments + '(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "pytest" "-vv"))))))) + (propagated-inputs (list python-numpy)) + (native-inputs (list python-pytest python-pytest-cov python-pytest-pep8)) + (home-page "https://github.com/dgasmith/opt_einsum") + (synopsis "Optimizing numpys einsum function") + (description + "Optimized einsum can significantly reduce the overall execution time of +einsum-like expressions by optimizing the expression's contraction order and +dispatching many operations to canonical BLAS, cuBLAS, or other specialized +routines. Optimized einsum is agnostic to the backend and can handle NumPy, +Dask, PyTorch, Tensorflow, CuPy, Sparse, Theano, JAX, and Autograd arrays as +well as potentially any library which conforms to a standard API. See the +documentation for more information.") + (license license:expat))) -- cgit v1.2.3 From a15b769c2f81034884ef0ae7fa8c1cea8df45c56 Mon Sep 17 00:00:00 2001 From: "Paul A. Patience" Date: Thu, 14 Jul 2022 19:20:18 +0000 Subject: gnu: python-pyvista: Update to 0.35.1. * gnu/packages/python-science (python-pyvista): Update to 0.35.1. Signed-off-by: Christopher Baines --- gnu/packages/python-science.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gnu/packages/python-science.scm') diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm index 428ce48b53..57c9325f49 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm @@ -1183,7 +1183,7 @@ aggregated sum and more.") (define-public python-pyvista (package (name "python-pyvista") - (version "0.34.0") + (version "0.35.1") (source ;; The PyPI tarball does not contain the tests. ;; (However, we don't yet actually run the tests.) @@ -1194,7 +1194,7 @@ aggregated sum and more.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0f2x2wvi5pkpv5h3jrnx8zxnaj51navfqp2fdna1l9rpjgjjf94g")))) + (base32 "1rwwn8a4j3i22il6dxr2qzrnnz3n1gjbpa2p8gfzrjmzp5lzzk81")))) (build-system python-build-system) (propagated-inputs (list python-appdirs -- cgit v1.2.3