agencyenterprise / neurotechdevkit

Neurotech Development Kit (NDK)
https://agencyenterprise.github.io/neurotechdevkit/
Apache License 2.0
115 stars 10 forks source link

Fix plot_time_reverse.py time-reverse simulation #172

Closed charlesbmi closed 1 month ago

charlesbmi commented 10 months ago

https://github.com/agencyenterprise/neurotechdevkit/issues/171

Introduction

Introduction from plot_time_reverse.py:

The skull adds aberrations to the beam propagation; phased arrays can compensate for those by having different delays for each element, but estimating these delays can be challenging. One method to estimate the delays is a "time reverse" simulation as described in this Article. This notebook demonstrates the "time reverse" method to estimate the delays. The notebook sets up a scenario with a phased array source and a target and then runs a simulation with the source and target reversed to calculate the delays. Finally, it uses the calculated delays to perform a forward-time simulation.

The time-reverse simulation was still using an old API .add_source so it had both the default source and the

Changes

Behavior

codecov-commenter commented 10 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Files Coverage Δ
src/neurotechdevkit/results/_metrics.py 100.00% <ø> (ø)
src/neurotechdevkit/results/_results.py 64.28% <100.00%> (ø)

:loudspeaker: Thoughts on this report? Let us know!.