Registry / data / hankel

hankel

JSON →
library1.2.2pypypi✓ verified 83d ago

Hankel Transformations using the method of Ogata 2005. Current version 1.2.2, requires Python >=3.6. Maintenance mode with occasional bugfixes.

pip install hankel
INSTALL
IMPORT
SIG · HANKEL
H
hankel
datapythonv1.2.2
Install
7.4s avg
Import
1568ms
Disk
235MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.2.2 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 1.630s · 235MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 7.4s · import 1.506s · 226MB
235MB installed
● package 235MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

HankelTransform
from hankel import HankelTransform
SymmetricFourierTransform
from hankel import SymmetricFourierTransform

Compute Hankel transform of f(x)=exp(-x^2) at points k=1,2.

from hankel import HankelTransform import numpy as np ht = HankelTransform(nu=0, N=200, h=0.05) result = ht.transform(lambda x: np.exp(-x**2), np.array([1.0, 2.0])) print(result)
Debug
Known issues
deprecatedThe `algebraic_decay` parameter in `__init__` is deprecated since v1.0.
fix
Use `algorithm='direct' or 'ogata'` instead.
affects: >=1.0
gotchaDefault `N` (number of integration points) may be too small for accurate transforms; always check convergence.
fix
Increase `N` (e.g., 200-500) and compare results.
affects: all
breakingIn v1.0, the `h` parameter spacing was changed from logarithmic to semi-logarithmic scaling; results differ from v0.3.x.
fix
Adjust `h` value and recompute, or pin to v0.3.x.
affects: <1.0 and >=1.0
Errors
Common errors & fixes
AttributeError: module 'hankel' has no attribute 'HankelTransform'
Wrong import path, e.g., `import hankel` and then `hankel.HankelTransform` instead of direct import.
fix
Use `from hankel import HankelTransform`.
ValueError: h must be positive
Provided non-positive `h` parameter.
fix
Ensure `h` > 0, e.g., 0.05.
Upgrade
Version history
1.2.2latest on PyPI · released Jul 27, 2023
Audit
Dependencies
numpyrequiredCore numerical operations and FFT
scipyrequiredBessel functions and special functions
Agent activity
13 hits · last 30 days
node
12
Amazon
1
Resources
hankel — pip install hankel · libregistry