Chebyfit is a Python library that implements the algorithms described in:
Analytic solutions to modelling exponential and harmonic functions using Chebyshev polynomials: fitting frequency-domain lifetime images with photobleaching. G C Malachowski, R M Clegg, and G I Redford. J Microsc. 2007; 228(3): 282-295. doi: 10.1111/j.1365-2818.2007.01846.x
- Author:
- License:
BSD 3-Clause
- Version:
2026.8.8
Quickstart
Install the chebyfit package and all dependencies from the Python Package Index:
python -m pip install -U chebyfit
See Examples for using the programming interface.
Source code and support are available on GitHub.
Requirements
This revision was tested with the following requirements and dependencies (other versions may work):
Revisions
2026.8.8
Fix code review issues.
Improve docstrings.
Make C extension ABI3 and free-threading compatible.
Drop support for Python 3.11 and numpy 2.0 (SPEC0).
Support Python 3.15.
2026.1.18
Rename chebyshev_invers to chebyshev_inverse (breaking).
Use multi-phase initialization.
Improve code quality.
2025.8.1
Drop support for Python 3.10, support Python 3.14.
2025.1.1
Improve type hints.
Drop support for Python 3.9, support Python 3.13.
2024.5.24
…
Refer to the CHANGES file for older revisions.
Examples
Fit two-exponential decay function:
>>> deltat = 0.5 >>> t = numpy.arange(0, 128, deltat) >>> data = 1.1 + 2.2 * numpy.exp(-t / 33.3) + 4.4 * numpy.exp(-t / 55.5) >>> params, fitted = fit_exponentials(data, numexps=2, deltat=deltat) >>> numpy.allclose(data, fitted) True >>> params['offset'] array([1.1]) >>> params['amplitude'] array([[4.4, 2.2]]) >>> params['rate'] array([[55.5, 33.3]])
Fit harmonic function with exponential decay:
>>> tt = t * (2 * math.pi / (t[-1] + deltat)) >>> data = 1.1 + numpy.exp(-t / 22.2) * ( ... 3.3 - 4.4 * numpy.sin(tt) + 5.5 * numpy.cos(tt) ... ) >>> params, fitted = fit_harmonic_decay(data, deltat=0.5) >>> numpy.allclose(data, fitted) True >>> params['offset'] array([1.1]) >>> params['rate'] array([22.2]) >>> params['amplitude'] array([[3.3, 4.4, 5.5]])
Fit experimental time-domain image:
>>> data = numpy.fromfile('test.b&h', dtype='float32').reshape((256, 256, 256))
>>> data = data[64 : 64 + 64]
>>> params, fitted = fit_exponentials(data, numexps=1, numcoef=16, axis=0)
>>> numpy.allclose(data.sum(axis=0), fitted.sum(axis=0))
True
Release files for chebyfit 2026.8.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| chebyfit-2026.8.8.tar.gz | 19.8 kB | Details |
Built distributions (wheels)
Total release size: 952.9 kB
Release files / chebyfit-2026.8.8.tar.gz
| Download URL | chebyfit-2026.8.8.tar.gz |
|---|---|
| Size | 19.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
91b9ad8272afd66707fe74213d71f5c17dd4e2d21a1b331389dc67e8ebb57f0a
|
|
BLAKE2b-256 checksum How to use checksums |
a8726a9e82b461e6c0a1ec9d5fec69917825d9e6a5475270da1c7a97a94aca45
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / chebyfit-2026.8.8-cp315-cp315t-win_arm64.whl
| Download URL | chebyfit-2026.8.8-cp315-cp315t-win_arm64.whl |
|---|---|
| Size | 26.2 kB |
| Tags | CPython 3.15 CPython 3.15 free-threading Windows ARM64 |
|
SHA-256 checksum How to use checksums |
0625d46cf4a0f177e094f244ebd60f022a2c6c15327ef9ad3745d43b91aa43a4
|
|
BLAKE2b-256 checksum How to use checksums |
e81106f37b78b7c8ce09bb869fc800ee23bfb728587bec139058be6b75449f71
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / chebyfit-2026.8.8-cp315-cp315t-win_amd64.whl
| Download URL | chebyfit-2026.8.8-cp315-cp315t-win_amd64.whl |
|---|---|
| Size | 31.6 kB |
| Tags | CPython 3.15 CPython 3.15 free-threading Windows x86-64 |
|
SHA-256 checksum How to use checksums |
c2c1582ead92e6de94ecf2b6674d7f9bfa6292b81c4b1bc0054432002265f8b2
|
|
BLAKE2b-256 checksum How to use checksums |
450d422d483137ee78124582a1f898469f513b25737d4bcbd05b919a87191b94
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / chebyfit-2026.8.8-cp315-cp315t-win32.whl
| Download URL | chebyfit-2026.8.8-cp315-cp315t-win32.whl |
|---|---|
| Size | 26.9 kB |
| Tags | CPython 3.15 CPython 3.15 free-threading Windows x86-32 |
|
SHA-256 checksum How to use checksums |
25aff9cc1cee601e2dd8a79c773929925c925941095a8a16042ded68b614d416
|
|
BLAKE2b-256 checksum How to use checksums |
5092e29207fb193f75d01afe4154653ca07853024e25b3630d199e08e4abba61
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / chebyfit-2026.8.8-cp315-cp315t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
| Download URL | chebyfit-2026.8.8-cp315-cp315t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl |
|---|---|
| Size | 78.4 kB |
| Tags | CPython 3.15 CPython 3.15 free-threading Linux glibc 2.17+ ARM64 Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
d4ca8840e682645cd7288e50dba1a9d38929ce9ba3bce23cd03403c3955bbc98
|
|
BLAKE2b-256 checksum How to use checksums |
9a9cd34f93e103c9e7b6706877c850f580d39cf1a3069fda67a6aee013ba2672
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / chebyfit-2026.8.8-cp315-cp315t-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
| Download URL | chebyfit-2026.8.8-cp315-cp315t-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl |
|---|---|
| Size | 80.3 kB |
| Tags | CPython 3.15 CPython 3.15 free-threading Linux glibc 2.28+ x86-64 Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
2ef51e96667db762e2fdda5b3726ba68cca531ec6cfc8cc48a9b1c56d53f8e46
|
|
BLAKE2b-256 checksum How to use checksums |
283fd279c08ddbacf18f62d57d6522f1e3025c88a8d2b22a141c133c2e538dfc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / chebyfit-2026.8.8-cp315-cp315t-macosx_11_0_arm64.whl
| Download URL | chebyfit-2026.8.8-cp315-cp315t-macosx_11_0_arm64.whl |
|---|---|
| Size | 29.6 kB |
| Tags | CPython 3.15 CPython 3.15 free-threading macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
38e1958e5b98fe2d28532a2cf6f3317a2ae3649ec82bae0d11f9e568f68199e9
|
|
BLAKE2b-256 checksum How to use checksums |
97d2f7fe17b9c1727c40e9ca5ee54ca281ec7ddeae3007b2eb27696cf468a63e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / chebyfit-2026.8.8-cp315-cp315t-macosx_10_15_x86_64.whl
| Download URL | chebyfit-2026.8.8-cp315-cp315t-macosx_10_15_x86_64.whl |
|---|---|
| Size | 31.7 kB |
| Tags | CPython 3.15 CPython 3.15 free-threading macOS 10.15+ x86-64 |
|
SHA-256 checksum How to use checksums |
65830bdb6d5fdf3580bb6a9a654cf3c63f80796557bcd3b3228d934c2f131abb
|
|
BLAKE2b-256 checksum How to use checksums |
090c79b8355387bd91efcff3cc87573073e3c4013c67b413d64af711796b9959
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / chebyfit-2026.8.8-cp314-cp314t-win_arm64.whl
| Download URL | chebyfit-2026.8.8-cp314-cp314t-win_arm64.whl |
|---|---|
| Size | 26.2 kB |
| Tags | CPython 3.14 CPython 3.14 free-threading Windows ARM64 |
|
SHA-256 checksum How to use checksums |
af70e5f0869a415b9dea1ee539a3a76577c69a1fc1a5ac4aae837d378d9d629a
|
|
BLAKE2b-256 checksum How to use checksums |
36219b2cf99b12146e043a7c34da49c90396129864c462467f2d57c21427fe3f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / chebyfit-2026.8.8-cp314-cp314t-win_amd64.whl
| Download URL | chebyfit-2026.8.8-cp314-cp314t-win_amd64.whl |
|---|---|
| Size | 31.6 kB |
| Tags | CPython 3.14 CPython 3.14 free-threading Windows x86-64 |
|
SHA-256 checksum How to use checksums |
0c313e65460291b851c66454ef8efe3e126a7e8766bdd15e7380bed764cebd26
|
|
BLAKE2b-256 checksum How to use checksums |
0e56f02c875b682ae88d40cec804715d55054c77a6b1747d5993c876e369d90d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / chebyfit-2026.8.8-cp314-cp314t-win32.whl
| Download URL | chebyfit-2026.8.8-cp314-cp314t-win32.whl |
|---|---|
| Size | 26.9 kB |
| Tags | CPython 3.14 CPython 3.14 free-threading Windows x86-32 |
|
SHA-256 checksum How to use checksums |
b9250e9b16db670b38a94eec9005ebb77b45251630b267284d4e145ea6ef710a
|
|
BLAKE2b-256 checksum How to use checksums |
c42d8703aab09300f7c1a448b197553b00af18d14ad363061ed4cf11e576050c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / chebyfit-2026.8.8-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
| Download URL | chebyfit-2026.8.8-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl |
|---|---|
| Size | 77.8 kB |
| Tags | CPython 3.14 CPython 3.14 free-threading Linux glibc 2.17+ ARM64 Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
6cdf3e73471400814cd2bf4f1b614540d62091be28bcd84b96166ad9894da1cb
|
|
BLAKE2b-256 checksum How to use checksums |
9d1ab7d183b7dfe70ac1bdd84641bb0534394e0ed739ad20582cf36d53c8de38
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / chebyfit-2026.8.8-cp314-cp314t-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
| Download URL | chebyfit-2026.8.8-cp314-cp314t-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl |
|---|---|
| Size | 80.4 kB |
| Tags | CPython 3.14 CPython 3.14 free-threading Linux glibc 2.28+ x86-64 Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
2be016c355c1841dc97a3fd4b3f12a6568d17c73635d9bc3e22f7a98a52ccd15
|
|
BLAKE2b-256 checksum How to use checksums |
377478f5bcc96af09bbf86ec01248995baaea648a4a4f7edbefe517f4a23ef5e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / chebyfit-2026.8.8-cp314-cp314t-macosx_11_0_arm64.whl
| Download URL | chebyfit-2026.8.8-cp314-cp314t-macosx_11_0_arm64.whl |
|---|---|
| Size | 29.7 kB |
| Tags | CPython 3.14 CPython 3.14 free-threading macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
7658328f5676870de526f02181fe919491295b321105c3108bae0f123843c4b8
|
|
BLAKE2b-256 checksum How to use checksums |
1df70499cd2f32198d9fe78cd997d02e59fbc8b5a4db22e8ad14f0b9b69ccac0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / chebyfit-2026.8.8-cp314-cp314t-macosx_10_15_x86_64.whl
| Download URL | chebyfit-2026.8.8-cp314-cp314t-macosx_10_15_x86_64.whl |
|---|---|
| Size | 31.7 kB |
| Tags | CPython 3.14 CPython 3.14 free-threading macOS 10.15+ x86-64 |
|
SHA-256 checksum How to use checksums |
85e0b0906142bfc0e224653d5518d06f916a29bc180d28f0c67618afc8d6398e
|
|
BLAKE2b-256 checksum How to use checksums |
aeba3b16747ad1bd8cb76528eefe427b33d1d9dd4f93e55dde3a6fc7dcc91e9a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / chebyfit-2026.8.8-cp312-abi3-win_arm64.whl
| Download URL | chebyfit-2026.8.8-cp312-abi3-win_arm64.whl |
|---|---|
| Size | 24.7 kB |
| Tags | CPython 3.12 Windows ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
25f2877a92159b936828c457967402a199450e73e008bc64e33a99621b2d1457
|
|
BLAKE2b-256 checksum How to use checksums |
c340bc87c10fe9aa598ba2295b1a66a0618e872a34bb8d3f80d2f6504d6db1b6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / chebyfit-2026.8.8-cp312-abi3-win_amd64.whl
| Download URL | chebyfit-2026.8.8-cp312-abi3-win_amd64.whl |
|---|---|
| Size | 30.3 kB |
| Tags | CPython 3.12 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
4d956d3934d4f72e041d12b2efe77400b05e032e091e3815a24e8099a6cdab45
|
|
BLAKE2b-256 checksum How to use checksums |
4c913dfe7a022436c0d073b8c97182ddbc7c31871785a6d0420d805b755ba728
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / chebyfit-2026.8.8-cp312-abi3-win32.whl
| Download URL | chebyfit-2026.8.8-cp312-abi3-win32.whl |
|---|---|
| Size | 25.5 kB |
| Tags | CPython 3.12 Windows x86-32 abi3 |
|
SHA-256 checksum How to use checksums |
21f1da53d7cbbf597940e27532fe27416c023e239b613f7905ea2d2792a38818
|
|
BLAKE2b-256 checksum How to use checksums |
4df59b08b1107a31e42469770f34d4c9c70d7f84e2cca5af7085b4b376dc7a9b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / chebyfit-2026.8.8-cp312-abi3-pyemscripten_2026_5_wasm32.whl
| Download URL | chebyfit-2026.8.8-cp312-abi3-pyemscripten_2026_5_wasm32.whl |
|---|---|
| Size | 17.1 kB |
| Tags | CPython 3.12 PyEmscripten 2026.5+ WebAssembly abi3 |
|
SHA-256 checksum How to use checksums |
d184c1b9c91d842532d6e2889fa8df4fcd28fe4fc63416704ec3582a8978be05
|
|
BLAKE2b-256 checksum How to use checksums |
d0a4348bf8af283301828030caf63bcd64eeaf827177b658bb7bafcc43e01327
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / chebyfit-2026.8.8-cp312-abi3-pyemscripten_2026_0_wasm32.whl
| Download URL | chebyfit-2026.8.8-cp312-abi3-pyemscripten_2026_0_wasm32.whl |
|---|---|
| Size | 17.0 kB |
| Tags | CPython 3.12 PyEmscripten 2026.0+ WebAssembly abi3 |
|
SHA-256 checksum How to use checksums |
6e8ad156450e1daf0135513a7e2c2b3c74a1efc412e31c9fa82d097e77bb677b
|
|
BLAKE2b-256 checksum How to use checksums |
137c842fe9a3a7383142acd3d4676fe4e8ee523e9408d7b9163baca2feccb05e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / chebyfit-2026.8.8-cp312-abi3-pyemscripten_2025_0_wasm32.whl
| Download URL | chebyfit-2026.8.8-cp312-abi3-pyemscripten_2025_0_wasm32.whl |
|---|---|
| Size | 17.1 kB |
| Tags | CPython 3.12 PyEmscripten 2025.0+ WebAssembly abi3 |
|
SHA-256 checksum How to use checksums |
78a27988a7c4aa1a95108ad9b1c7feb6437d114f6fc9930dddbb5215fce1957d
|
|
BLAKE2b-256 checksum How to use checksums |
80f84b0b7319a11baf5d465dbaa7d501724007704065bf8c2874387902a96705
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / chebyfit-2026.8.8-cp312-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
| Download URL | chebyfit-2026.8.8-cp312-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl |
|---|---|
| Size | 64.9 kB |
| Tags | CPython 3.12 Linux glibc 2.17+ ARM64 Linux glibc 2.28+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
8daeccb6cd1fc4a995ff6d25ec07f48e5627280fb5d8e2231da3a332ac605ebd
|
|
BLAKE2b-256 checksum How to use checksums |
aecd4243aa21b1f35e2d7c78ea1569e34930ac4e96c42c28575c0048bca7253e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / chebyfit-2026.8.8-cp312-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
| Download URL | chebyfit-2026.8.8-cp312-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl |
|---|---|
| Size | 67.5 kB |
| Tags | CPython 3.12 Linux glibc 2.28+ x86-64 Linux glibc 2.5+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
06d81dfbf3f2857dc9b302eb11c71417c1ef10e5649372d7215f202c0ead9638
|
|
BLAKE2b-256 checksum How to use checksums |
25053149dd9cb488cbaa845bc715ce8d1b1e9019f7b83fb0f841bb03cb4c3917
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / chebyfit-2026.8.8-cp312-abi3-macosx_11_0_arm64.whl
| Download URL | chebyfit-2026.8.8-cp312-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 28.9 kB |
| Tags | CPython 3.12 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
551725bbd70f50741f18b9ce21c1c59a690847d169e723728b67626d1e6c507c
|
|
BLAKE2b-256 checksum How to use checksums |
b38ddaee54e4336a68c2776659d759066f8a74cf0a904152431184f2f71ae34e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / chebyfit-2026.8.8-cp312-abi3-macosx_10_13_x86_64.whl
| Download URL | chebyfit-2026.8.8-cp312-abi3-macosx_10_13_x86_64.whl |
|---|---|
| Size | 31.2 kB |
| Tags | CPython 3.12 abi3 macOS 10.13+ x86-64 |
|
SHA-256 checksum How to use checksums |
2214a6357b29dd2cad835c1f9ea79c4dc6250c3f1fb12ee07dc237d30a856526
|
|
BLAKE2b-256 checksum How to use checksums |
1bfe61db55dcdf8f78de391e4618f12379256f39b397cfe578c94ad0892bd7d7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|