Scan your whole stack
From OX Research Newsroom
Are you using esdiva?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.4.0
esdiva was last scanned on 23 Nov 2026 at version 0.4.0. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.4.0 LATEST | 23 Nov 2026 | No rules fired |
Findings for v0.4.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.4.0; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
📖 Documentation: https://estebanrivera08.github.io/eSDIva/
[!WARNING] eSDIva is currently under development. The API is subject to change, and some features may be unstable. Contact me if you have any problem.
eSDIva is an open‑source Spatial Impulse Response (SIR) and pressure‑field simulation library that supports arbitrary transducer geometries composed of small rectangular patches with apodization and delays.
eSDIva implements both the Fully Sampled Trapezoid (FST) and the Sparse Delta Integration (SDI) methods for computing SIRs following the Tupholme–Stepanishen formulation.
FST reproduces the classic Field II approach, while SDI is a new, algorithmically and mathematically improved method that computes the same SIRs — under identical assumptions — but substantially faster.
The SIR is available through two kernels that feed emission and reception alike: a temporal kernel (the sampled h(r, t), FST/SDI) and a spectral kernel (the closed-form H(r, ω), exact at any frequency). Excitation, impulse responses, attenuation and baffle obliquity are then applied in one shared frequency-domain chain, so emission and reception mirror each other.
[!NOTE] eSDIva is designed as complementary material to the work presented in [https://arxiv.org/abs/2608.26891]. Its goal is to provide fundamental building blocks that researchers can inspect, reuse, contribute to, or adapt. It also leaves room for community‑driven extensions that integrate naturally with the broader scientific Python ecosystem. Utilities such as the integration with the BrainGlobe atlas may still evolve to improve robustness.
Transducer objects — Tools to create and assemble common transducer types: linear arrays, convex arrays, matrix arrays, flat/concave/focused circular transducers, and arbitrary custom arrays. These utilities compute geometric focal laws, generate apodization windows for specified F/D ratios, and more.
SIR simulation — The hsir module computes the spatial impulse response of apertures discretized into rectangular patches, with Numba‑accelerated, field‑point‑parallel kernels: compute_h_sir samples ( h(r, t) ) (FST, SDI or automatic), and compute_h_sir_spectrum evaluates its closed‑form spectrum ( H(r, \omega) ) (per patch: area × two sincs × a delay phasor) — exact, no time sampling.
Emission simulation — The Emission class turns the SIR into acoustic pressure fields: monochromatic fields (pressure amplitude at exactly fc) and broadband transient fields (signed pressure in pascals), with global or per‑element excitation, attenuation, a soft or rigid baffle and user transfer functions.
Pulse‑echo reception — The Reception class simulates pulse‑echo RF from scatterers with the same two kernels (auto-selected per run — temporal for a lossless single-drive RF, spectral otherwise — or forced) and the same options as emission — per‑element excitation, attenuation, baffle. Generates PSFs, focused B‑mode lines, plane‑wave / diverging‑wave event sequences, moving scatterers for flow and Doppler, and full‑matrix / synthetic‑aperture (FMC) acquisitions, with crash‑safe checkpointing of long runs.
Attenuation — Causal power‑law (frequency‑dependent) attenuation with Kramers–Kronig dispersion referenced at the centre frequency, applied in both emission and reception along each propagation path, with either kernel. See the attenuation guide.
Phantoms & I/O — Random‑scatterer phantom generation with echogenicity maps, and a checkpointed on‑disk RF store (RFDataset, .npz) with HDF5 export (UFF‑compatible fields) for MATLAB/USTB interchange.
Brain Atlas Integration — Maps pressure simulations onto standard brain atlases (via BrainGlobe) for neuro‑ultrasound research.
AI assistant skills — Portable Agent Skills (skills/) that teach a coding assistant how to build transducers, run emission and pulse-echo simulations, feed the RF to your own beamformer, and contribute back. Work as-is in Claude Code (/plugin marketplace add EstebanRivera08/eSDIva), OpenAI Codex and OpenCode (copy into ~/.agents/skills/), or any assistant that reads Markdown. See the AI assistant guide.
Visualization — Rich plotting utilities using Matplotlib and PyVista for visualizing transducers, pressure fields, pulse‑echo setups, and brain atlases.
We recommend installing eSDIva in a virtual environment to avoid dependency conflicts with other Python packages. Using uv, you can create a new project folder with a virtual environment as follows:
uv init new_project
If you already have a project folder, create a virtual environment with:
uv venv
From PyPI, with everything switched on:
uv add "esdiva[all]" # or: pip install "esdiva[all]"
If you installed with uv, you can also run the bundled demo for fun:
uv run esdiva # simulates and renders a focused 3-D field
For the latest development version from GitHub:
uv add "esdiva[all] @ git+https://github.com/EstebanRivera08/eSDIva.git"
[all] is the recommended install and pulls every feature. If you don't need
some of them — on a headless cluster, in CI, or inside a container — install
plain esdiva and add back only the extras you use:
| Install | What you get |
|---|---|
esdiva |
The simulator core: fields, transducers, reception, beamforming, 2-D and 3-D plotting. Enough for everything in the Quick Start. |
esdiva[atlas] |
utilities.BG_Atlas, which maps computed fields onto brain anatomy through BrainGlobe. Adds pandas, pyarrow and tifffile. |
esdiva[video] |
Saving animations as .mp4/.avi/.gif from the plotting utilities. Adds imageio and a bundled ffmpeg. Without it, static plots and screenshots still work. |
esdiva[jupyter] |
Interactive 3-D PyVista scenes rendered inside a notebook. Adds the trame and ipywidgets stack. Without it, 3-D still opens in a desktop window. |
esdiva[all] |
All of the above. |
Extras combine: pip install "esdiva[atlas,video]". Using a feature whose extra
is missing raises an error naming the extra to install, so nothing fails
silently.
Check that eSDIva is correctly installed by opening a Python interpreter and importing the package:
import esdiva
If no error is raised, you have installed eSDIva correctly.
import esdiva as diva
# Define transducer (mm units; no_sub_x/no_sub_y are keyword-only)
tx = diva.transducers.LinearArrayTransducer(
n_elements=64,
element_width_mm=0.25,
element_height_mm=12.0,
kerf_mm=0.05,
no_sub_x=2,
no_sub_y=4,
frequency_Hz=5e6,
)
tx.compute_delays(focus_mm=[0, 0, 30])
tx.compute_apodization(focus_mm=[0, 0, 30], FoverD=2.0)
# Define field grid
field_points = {
"x_extent": [-5, 5],
"y_extent": [-0.5, 0.5],
"z_extent": [5, 55],
"dx": 0.1,
"dy": 1.0,
"dz": 0.2,
}
# Run a monochromatic simulation → pressure amplitude at fc
sim = diva.Emission(tx, monochromatic=True)
p, coords = sim(field_points)
# Visualize
diva.plot2D_pressure_slices(p, coords=coords, db_scale=True, vmin=-40)
From the project folder you can also run the bundled examples directly:
uv run examples/learn/03_array_focusing_cw.py
uv run examples/learn/04_plane_vs_diverging_wave.py
uv run examples/learn/01_transducers.py
Both simulators take method=. The physics is identical — the far‑field trapezoidal SIR of each patch — and the two agree to about 1 %; only the route differs:
method |
SIR | Best for |
|---|---|---|
"spectral" |
closed‑form H(r, ω), evaluated only at the frequencies the pulse occupies |
monochromatic fields, per‑element drives or attenuation, and all reception |
"temporal" (= "sdi"), "fst", "auto" |
sampled h(r, t), then an FFT |
single‑group transient emission fields on dense grids |
p, coords = diva.Emission(tx, excitation=pulse)(field_points) # method=None: fastest for the mode
rf, coords = diva.Reception(tx, rx, excitation=pulse).pulse_echo_rf(pos_mm, amp) # method=None: fastest per run
p_t, _ = diva.Emission(tx, excitation=pulse, method="temporal")(field_points) # pin a kernel
Emission(method=None) and Reception(method=None) both pick the kernel measured fastest per run: for reception, temporal for a lossless single-drive summed RF, spectral when a frequency transfer function is unavoidable (attenuation, per-element drive, or the per-scatterer PSF).
If you use eSDIva in your research, please cite it using the following reference:
@misc{rivera2026sparsedeltaintegrationmethod,
title={Sparse Delta Integration method for the calculation of spatiotemporal pressure fields of arbitrary ultrasound transducer geometries},
author={Deyver E. Rivera and Charlie Demene and Mickael Tanter},
year={2026},
eprint={2608.26891},
archivePrefix={arXiv},
primaryClass={physics.med-ph},
url={https://arxiv.org/abs/2608.26891},
}
These works underpin the theory and helped as inspiration for the methods implemented in eSDIva (far-field trapezoid SIR for rectangular apertures, pulse‑echo modelling, power‑law attenuation, and related simulators).
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.