ZH: optional trace extender (WIP)

This commit is contained in:
Eric-Teunis de Boone 2022-12-05 14:35:35 +01:00
parent 2ffec6a10b
commit 2ef87343f5
3 changed files with 28 additions and 10 deletions

View file

@ -42,7 +42,9 @@ def geometry_time(dist, x2=None, c_light=3e8):
def beacon_from(tx, rx, f, t=0, t0=0, c_light=3e8, radiate_rsq=True, amplitude=1,**kwargs):
dist = distance(tx,rx)
t0 = t0 + dist/c_light
# suppress extra time delay from distance
if c_light is not None and np.isfinite(c_light):
t0 = t0 + dist/c_light
if radiate_rsq:
if np.isclose(dist, 0):