UCBerkeleySETI / hyperseti

A SETI / technosignature search code to find intelligent life beyond Earth
https://hyperseti.readthedocs.io
10 stars 4 forks source link

metadata["drift_rates"] is not being created anywhere #46

Closed texadactyl closed 2 years ago

texadactyl commented 2 years ago

Function hitsearch in hits.py is expecting the metadata to contain a numpy array called drift_rates. But, none of its callers are creating it.

texadactyl commented 2 years ago

Starting at line 103:

# Compute drift rate values in Hz/s corresponding to dedopp axis=0
dd_vals = dd_shifts * delta_dd

metadata['drift_rate_start'] = dd_vals[0] * u.Hz / u.s
metadata['drift_rate_step']  = delta_dd * u.Hz / u.s
metadata['drift_rates'] = dd_vals # <------------------------------------------------------------- insert this
texadactyl commented 2 years ago

Fixed in PR #45.