Dioptrin
Dioptrin provides fast 1D and 2D diffraction integration using a compiled Rust engine. It supports pixel splitting, supersampling, detector corrections, Poisson uncertainties, azimuthal intensity spread, and batch integration.
Installation
python -m pip install dioptrin
Dioptrin is distributed as binary wheels for standard CPython 3.11–3.15 on Windows x86-64, macOS Intel and Apple silicon, and Linux x86-64 and ARM64. Free-threaded Python is not supported. If no compatible wheel is available, installation from the source distribution requires a Rust toolchain. The source is available on GitHub.
License
Dioptrin is open-source software under the MIT license. Starting with 0.7.0, both source builds and pre-built wheels work without activation, license keys, or expiration checks. Upgrade older installations:
python -m pip install --upgrade dioptrin
Use with Dioptas
Install Dioptrin in the same Python environment as Dioptas and restart Dioptas. The Use Dioptrin checkbox becomes available in its integration options. Dioptas continues to work with pyFAI without Dioptrin.
Integration arithmetic
Fast CSR accumulation is enabled by default starting in 0.6.0
(fast_math=True). It uses four partial float64 sums and hardware fused
multiply-add where available. Set fast_math=False in Integrator or
Integrator.from_poni_dict to select strict accumulation. The two modes may
differ in floating-point rounding. Geometry, float64 pixel weights and correction
formulas are unchanged. Histogram and azimuthal-spread algorithms keep their
existing behavior.
File-batch workers
Starting in 0.6.1, file batches reuse typed TIFF decoding buffers and retain their
workers between calls. Standard 1D/2D CSR file tasks convert individual pixel
values to float64 inside the existing arithmetic. Integrator.clear_file_workers()
releases cached workers and buffers; already admitted streams finish normally.
Changing the worker/thread configuration replaces the pool. Cached workers retain
one decoded image buffer each until cleared or the integrator is released.
Metadata
Release files for dioptrin 0.7.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dioptrin-0.7.0.tar.gz | 6.5 MB | Without provenance | Details for dioptrin-0.7.0.tar.gz |
Built distributions (wheels)
Total release size: 31.7 MB
Release files / dioptrin-0.7.0.tar.gz
| Download URL | dioptrin-0.7.0.tar.gz |
|---|---|
| Size | 6.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
50f8ebfd9d48cf0b3cbaca6673482636955981d36240723a00a0e87cd7856d1b
|
|
BLAKE2b-256 checksum How to use checksums |
5a0bf48d8e99fa2dc3c5cd4111d0365f1ad0df26c249424d952b38b505511bfa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / dioptrin-0.7.0-cp315-cp315-win_amd64.whl
| Download URL | dioptrin-0.7.0-cp315-cp315-win_amd64.whl |
|---|---|
| Size | 1.1 MB |
| Tags | CPython 3.15 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
9065316d7c321083854ced38899d5258e440c78d00a97a9d7faa8a83003e38b7
|
|
BLAKE2b-256 checksum How to use checksums |
caf9c55881bcb74a91f50a8a7214ea81496e11961652209b5b30db6155ac5d4d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / dioptrin-0.7.0-cp315-cp315-manylinux_2_28_x86_64.whl
| Download URL | dioptrin-0.7.0-cp315-cp315-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 1.0 MB |
| Tags | CPython 3.15 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
4b55dfa6de20fce9f5accc21f81fe5bc8b6965cdb8cb8f88ad604a4437b0318d
|
|
BLAKE2b-256 checksum How to use checksums |
6a0951e8ecca3d6785c7df2334872085eef2691a302b8a7e3a5605b721a761bc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / dioptrin-0.7.0-cp315-cp315-manylinux_2_28_aarch64.whl
| Download URL | dioptrin-0.7.0-cp315-cp315-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 956.8 kB |
| Tags | CPython 3.15 Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
d6564b0db39eec04defb92eed8bf041d12c3ff5c52216416c9d9e9c04db8d7d5
|
|
BLAKE2b-256 checksum How to use checksums |
727a1e0bfb51f46e7c7a2a2ec0cf97b74873696455ea81de86c33b6ea02c2300
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / dioptrin-0.7.0-cp315-cp315-macosx_11_0_arm64.whl
| Download URL | dioptrin-0.7.0-cp315-cp315-macosx_11_0_arm64.whl |
|---|---|
| Size | 938.4 kB |
| Tags | CPython 3.15 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
14fc18b74fecc5d3b137b9eee4c72b321f2e730515289ce825ccaf7434d6b007
|
|
BLAKE2b-256 checksum How to use checksums |
9806244cfd1a2b0579f0f6dece3a78a050b2cd2563c115a69b590c235ec372d6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / dioptrin-0.7.0-cp315-cp315-macosx_10_12_x86_64.whl
| Download URL | dioptrin-0.7.0-cp315-cp315-macosx_10_12_x86_64.whl |
|---|---|
| Size | 1.0 MB |
| Tags | CPython 3.15 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
8aa23956bf2994886e216efb0e31cb12c5e40cbb11f69443d85f4869097f4c92
|
|
BLAKE2b-256 checksum How to use checksums |
acb3ee0650090c3a7b10c9820d35c0aa76a386cdaa7581fa441c5ae652fc1f05
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / dioptrin-0.7.0-cp314-cp314-win_amd64.whl
| Download URL | dioptrin-0.7.0-cp314-cp314-win_amd64.whl |
|---|---|
| Size | 1.1 MB |
| Tags | CPython 3.14 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
a961a9c8feac265f06f08d064c3b3b5e7341e32a33f4d52fe1d9a9f78a9bdfe4
|
|
BLAKE2b-256 checksum How to use checksums |
dbbda7cb717ad50e135a6aeecc56f2ca4ddf90ef1fa5b036af513684ad1833af
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / dioptrin-0.7.0-cp314-cp314-manylinux_2_28_x86_64.whl
| Download URL | dioptrin-0.7.0-cp314-cp314-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 1.0 MB |
| Tags | CPython 3.14 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
55046fd712cc4cbd6a5565afa0f51fa68fd689e0f51aa4bf3a0fbb223c20a0da
|
|
BLAKE2b-256 checksum How to use checksums |
bda176fa13f1591ec4dbec5389f4e1f801260892316c259adac51e7cb0f16f56
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / dioptrin-0.7.0-cp314-cp314-manylinux_2_28_aarch64.whl
| Download URL | dioptrin-0.7.0-cp314-cp314-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 957.0 kB |
| Tags | CPython 3.14 Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
65440a351f9f5a3b6f1c9bf061d5c2dd137da7de574598a2410c5a14b514a67d
|
|
BLAKE2b-256 checksum How to use checksums |
68ae4e40e53ce0faa5ac1ee9002cd0f521531289b67935b30c75f8a1e239da7b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / dioptrin-0.7.0-cp314-cp314-macosx_11_0_arm64.whl
| Download URL | dioptrin-0.7.0-cp314-cp314-macosx_11_0_arm64.whl |
|---|---|
| Size | 938.5 kB |
| Tags | CPython 3.14 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
fa7095b4fe40ae22185d603af96e4327ef38b3b8e9cfc7f3cedbabe68243ba49
|
|
BLAKE2b-256 checksum How to use checksums |
cec4be28f7736534afd7283ad53af824b699f6ab580ad9856ad4b9e53fbd8f6c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / dioptrin-0.7.0-cp314-cp314-macosx_10_12_x86_64.whl
| Download URL | dioptrin-0.7.0-cp314-cp314-macosx_10_12_x86_64.whl |
|---|---|
| Size | 1.0 MB |
| Tags | CPython 3.14 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
c187b88b7586dbc45b0e832d34e107d34c4c8565a8104f3bbc2fb8e95f9de5de
|
|
BLAKE2b-256 checksum How to use checksums |
d7239192c28eb721d0e1717a04b4ab9ec85cddb930a5a1fe10d652ed4e48c762
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / dioptrin-0.7.0-cp313-cp313-win_amd64.whl
| Download URL | dioptrin-0.7.0-cp313-cp313-win_amd64.whl |
|---|---|
| Size | 1.1 MB |
| Tags | CPython 3.13 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
9574b77a33ea41b077a3e2af74f27489bd3cd206f15134ed2caf47d02f40a80a
|
|
BLAKE2b-256 checksum How to use checksums |
860820e014bb684d7612029494bdb9ee5a25435dc26131eb8391c50fd9a4957c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / dioptrin-0.7.0-cp313-cp313-manylinux_2_28_x86_64.whl
| Download URL | dioptrin-0.7.0-cp313-cp313-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 1.0 MB |
| Tags | CPython 3.13 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
f1167e2445364df7425765b2224268605677d5c494904bae5ed6d211e3ba3e29
|
|
BLAKE2b-256 checksum How to use checksums |
507e3efabcdef77c3aab876d0eeb3795216a0204b069567ff7fa35fecf72742a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / dioptrin-0.7.0-cp313-cp313-manylinux_2_28_aarch64.whl
| Download URL | dioptrin-0.7.0-cp313-cp313-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 957.4 kB |
| Tags | CPython 3.13 Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
cc0775d08a8996821a40fb85bd2ed011da019e95692fe89e650e79b79dad8440
|
|
BLAKE2b-256 checksum How to use checksums |
fc34d02d8939f24be26bd02e2ad3134487e9875a41e763a4872842b0658954ad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / dioptrin-0.7.0-cp313-cp313-macosx_11_0_arm64.whl
| Download URL | dioptrin-0.7.0-cp313-cp313-macosx_11_0_arm64.whl |
|---|---|
| Size | 938.9 kB |
| Tags | CPython 3.13 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
765e282f62bda5adb3081641f6c7434a45a3a82fd9e62f40dc7d6e4159eb8509
|
|
BLAKE2b-256 checksum How to use checksums |
665b7ec9ebfcdf03f40df8ee3ac291734c9928c6a9cfb6f241b4152de4a30989
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / dioptrin-0.7.0-cp313-cp313-macosx_10_12_x86_64.whl
| Download URL | dioptrin-0.7.0-cp313-cp313-macosx_10_12_x86_64.whl |
|---|---|
| Size | 1.0 MB |
| Tags | CPython 3.13 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
83c35c2276cb015aa695d93dedb8f68bab87957230b2b86c7ee6c9798b8b21c3
|
|
BLAKE2b-256 checksum How to use checksums |
aaa657f1433d4b838552f1b8e6ed6fa442e342fa16eda342ea5ff11ea9dfa1da
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / dioptrin-0.7.0-cp312-cp312-win_amd64.whl
| Download URL | dioptrin-0.7.0-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 1.1 MB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
7ab47e14039f739a4f352e0d03fdda249c9944fc4eaf3da606327e3efdc9c598
|
|
BLAKE2b-256 checksum How to use checksums |
9607fe60da2a8786cbcbbf4b140e676f5c0f59a2eb86db27b4b1e763443ad891
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / dioptrin-0.7.0-cp312-cp312-manylinux_2_28_x86_64.whl
| Download URL | dioptrin-0.7.0-cp312-cp312-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 1.0 MB |
| Tags | CPython 3.12 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
ab3b3f3bf5ec9f899db19fee3b660dfb69a8945268d04692fa8387b5e470d8f1
|
|
BLAKE2b-256 checksum How to use checksums |
d005796499a9facb6f37f19bf36e36c1b24e1ed50c9d858e90dc2a030a034842
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / dioptrin-0.7.0-cp312-cp312-manylinux_2_28_aarch64.whl
| Download URL | dioptrin-0.7.0-cp312-cp312-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 957.9 kB |
| Tags | CPython 3.12 Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
40271e804aec8b8c3e345b86e76e75766314e20f975b194b102c01828cad35a6
|
|
BLAKE2b-256 checksum How to use checksums |
303d492b787c62afac542589d8f0c7e64f4c041bc59428c8208f90bf85248278
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / dioptrin-0.7.0-cp312-cp312-macosx_11_0_arm64.whl
| Download URL | dioptrin-0.7.0-cp312-cp312-macosx_11_0_arm64.whl |
|---|---|
| Size | 938.6 kB |
| Tags | CPython 3.12 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
d2791e257e42a15141b91a5bc87da576cf82c002a080a61915d02edf5686445b
|
|
BLAKE2b-256 checksum How to use checksums |
7d99cf7eabaced406fc618f6f96a7695893ce5ccb87807d40cce466ebb5797b3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / dioptrin-0.7.0-cp312-cp312-macosx_10_12_x86_64.whl
| Download URL | dioptrin-0.7.0-cp312-cp312-macosx_10_12_x86_64.whl |
|---|---|
| Size | 1.0 MB |
| Tags | CPython 3.12 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
9b2c28795937aaf32017b12f94d950ec9e461b74332a4202be25032f0f5c23dd
|
|
BLAKE2b-256 checksum How to use checksums |
b7eacda26030bc6351ac4663fbd47b54533bd1477c3cb0f02a4c89df972c2ef3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / dioptrin-0.7.0-cp311-cp311-win_amd64.whl
| Download URL | dioptrin-0.7.0-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 1.1 MB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
c5e72ae3906892dddefeb7f85a9d03136144e8ad958860665e0afbc2cca3eeea
|
|
BLAKE2b-256 checksum How to use checksums |
0a5c2c9ac210efec7801c184649714138e8d451683127083d282b488eeca61e1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / dioptrin-0.7.0-cp311-cp311-manylinux_2_28_x86_64.whl
| Download URL | dioptrin-0.7.0-cp311-cp311-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 1.0 MB |
| Tags | CPython 3.11 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
a8d6e0e58a398de5fb8e1d9287d61833d2302c1a471d0149c8d82227947c9df4
|
|
BLAKE2b-256 checksum How to use checksums |
9dbbb894d84e6d5735f754d1a2ed65e969fdf80f5713543aed6a438073b815be
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / dioptrin-0.7.0-cp311-cp311-manylinux_2_28_aarch64.whl
| Download URL | dioptrin-0.7.0-cp311-cp311-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 961.9 kB |
| Tags | CPython 3.11 Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
ebad65ba6a5e5478c4dec152f6aa37c6dbea0c6d8db71b6cd69d064df314d087
|
|
BLAKE2b-256 checksum How to use checksums |
3c98af183e9c1c42b8b81c32028d63298df9cef2036009b3538be2c1d0698e21
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / dioptrin-0.7.0-cp311-cp311-macosx_11_0_arm64.whl
| Download URL | dioptrin-0.7.0-cp311-cp311-macosx_11_0_arm64.whl |
|---|---|
| Size | 945.0 kB |
| Tags | CPython 3.11 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
94b51c6d3c12659ea0c66f5d6472dbc09c7f7538d936e548baaff59ed580d0ee
|
|
BLAKE2b-256 checksum How to use checksums |
04107895ed68f55f68abb1958a701e930c9d2d58dcd7f2371a44f3f67a575960
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / dioptrin-0.7.0-cp311-cp311-macosx_10_12_x86_64.whl
| Download URL | dioptrin-0.7.0-cp311-cp311-macosx_10_12_x86_64.whl |
|---|---|
| Size | 1.0 MB |
| Tags | CPython 3.11 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
6110cf3d496abbbb25bb36e4038cb3ecaaf9f6f49d066ecf690924cf89b33c4d
|
|
BLAKE2b-256 checksum How to use checksums |
eab46e8af8790211ea43c44637dd09be798c58b68f5ecdad9bac3bad2a5dd659
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Security for dioptrin 0.7.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.