summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--guix-science/packages/physics.scm53
1 files changed, 38 insertions, 15 deletions
diff --git a/guix-science/packages/physics.scm b/guix-science/packages/physics.scm
index f6c6b5e..6e846b1 100644
--- a/guix-science/packages/physics.scm
+++ b/guix-science/packages/physics.scm
@@ -1042,7 +1042,7 @@ makes them usable from @code{h5py}.")
1042(define-public python-pyfai 1042(define-public python-pyfai
1043 (package 1043 (package
1044 (name "python-pyfai") 1044 (name "python-pyfai")
1045 (version "2025.12.1") 1045 (version "2026.05")
1046 (source 1046 (source
1047 (origin 1047 (origin
1048 (method git-fetch) 1048 (method git-fetch)
@@ -1051,41 +1051,64 @@ makes them usable from @code{h5py}.")
1051 (commit (string-append "v" version)))) 1051 (commit (string-append "v" version))))
1052 (file-name (git-file-name name version)) 1052 (file-name (git-file-name name version))
1053 (sha256 1053 (sha256
1054 (base32 "1gzlgw3ka0wbvnz8x7jgf9yd6606m2ib1q082dy8yycb65lgh13z")))) 1054 (base32 "05900wz1sdhy9inj3a1jz7fqiigwcwdblaf0fg8z8yzkj3r0sicm"))))
1055 (build-system pyproject-build-system) 1055 (build-system pyproject-build-system)
1056 (arguments 1056 (arguments
1057 (list 1057 (list
1058 #:phases 1058 #:phases
1059 #~(modify-phases %standard-phases 1059 #~(modify-phases %standard-phases
1060 ;; Requires install first.
1060 (delete 'check) 1061 (delete 'check)
1061 (add-after 'install 'check 1062
1062 (lambda* (#:key tests? inputs outputs #:allow-other-keys) 1063 (add-after 'add-install-to-pythonpath 'check
1064 (lambda* (#:key tests? #:allow-other-keys)
1063 (when tests? 1065 (when tests?
1064 (add-installed-pythonpath inputs outputs) 1066 (invoke "python3"
1065 (invoke "python3" "run_tests.py" "--installed"))))))) 1067 "-m"
1068 "pytest"
1069 "--pyargs"
1070 "pyFAI.test"
1071 (string-join (list "--deselect=test_pickle.py"
1072 "TestPickle" "test_Calibrant") "::")
1073 (string-join (list "--deselect=test_scripts.py"
1074 "TestScriptsHelp" "testCheckCalib")
1075 "::")
1076 (string-join (list "--deselect=test_scripts.py"
1077 "TestScriptsHelp" "testMxcalibrate")
1078 "::")
1079 (string-join (list "--deselect=test_scripts.py"
1080 "TestScriptsHelp" "testPilx") "::")
1081 (string-join (list "--deselect=test_scripts.py"
1082 "TestScriptsHelp"
1083 "testPyfaiBenchmark") "::")
1084 (string-join (list "--deselect=test_scripts.py"
1085 "TestScriptsHelp" "testPyfaiCalib")
1086 "::")
1087 (string-join (list "--deselect=test_scripts.py"
1088 "TestScriptsHelp"
1089 "testPyfaiDrawmask") "::")
1090 (string-join (list "--deselect=test_scripts.py"
1091 "TestScriptsHelp"
1092 "testPyfaiRecalib") "::"))))))))
1066 (propagated-inputs (list python-fabio 1093 (propagated-inputs (list python-fabio
1067 python-h5py 1094 python-h5py
1068 python-hdf5plugin
1069 python-matplotlib 1095 python-matplotlib
1070 python-numexpr 1096 python-numexpr
1071 python-numpy 1097 python-numpy
1072 python-pyopencl
1073 python-pyside-6
1074 python-scipy 1098 python-scipy
1075 python-silx)) 1099 python-silx))
1076 (native-inputs (list python-meson ninja python-cython 1100 (native-inputs (list python-meson ninja python-cython
1077 python-pyproject-metadata)) 1101 python-pyproject-metadata python-pytest))
1078 (home-page "http://www.silx.org/doc/pyfai/latest") 1102 (home-page "http://www.silx.org/doc/pyfai/latest")
1079 (synopsis "Python implementation of fast azimuthal integration") 1103 (synopsis "Python implementation of fast azimuthal integration")
1080 (description 1104 (description
1081 "PyFAI is an azimuthal integration library that tries to be fast (as fast 1105 "PyFAI is an azimuthal integration library that tries to be fast (as fast
1082as C and even more using OpenCL and GPU). It is based on histogramming of the 1106as C and even more using OpenCL and GPU). It is based on histogramming of the
10832theta/Q positions of each (center of) pixel weighted by the intensity of each 11072theta/Q positions of each (center of) pixel weighted by the intensity of each
1084pixel, but parallel version uses a SparseMatrix-DenseVector 1108pixel, but parallel version uses a SparseMatrix-DenseVector multiplication.
1085multiplication. Neighboring output bins get also a contribution of pixels next 1109Neighboring output bins get also a contribution of pixels next to the border
1086to the border thanks to pixel splitting. Finally pyFAI provides also tools to 1110thanks to pixel splitting. Finally pyFAI provides also tools to calibrate the
1087calibrate the experimental setup using Debye-Scherrer rings of a reference 1111experimental setup using Debye-Scherrer rings of a reference compound.")
1088compound.")
1089 (license license:expat))) 1112 (license license:expat)))
1090 1113
1091(define-public python-occ-core 1114(define-public python-occ-core