-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
clean up logging; change from theta in pi to just theta
- Loading branch information
Showing
4 changed files
with
46 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,41 @@ | ||
from functools import cache | ||
|
||
import numpy as np | ||
|
||
|
||
def get_column_names_v2(nthetas=65): | ||
def v2_column_names(nthetas=65): | ||
thetas = np.linspace(-np.pi, np.pi, nthetas) | ||
return [ | ||
"timestamp", | ||
"tx_pos_x", | ||
"tx_pos_y", | ||
"rx_pos_x", | ||
"rx_pos_y", | ||
"rx_theta_in_pis", | ||
"rx_theta", | ||
"rx_spacing", | ||
"avg_phase_diff_1", | ||
"avg_phase_diff_2", | ||
] + ["beamformer_angle_%0.4f" % theta for theta in thetas] | ||
|
||
|
||
@cache | ||
def v2_rx_pos_idxs(): | ||
return [ | ||
v2_column_names().index("rx_pos_x"), | ||
v2_column_names().index("rx_pos_y"), | ||
] | ||
|
||
|
||
@cache | ||
def v2_rx_theta_idxs(): | ||
return [ | ||
v2_column_names().index("rx_theta"), | ||
] | ||
|
||
|
||
@cache | ||
def v2_tx_pos_idxs(): | ||
return [ | ||
v2_column_names().index("tx_pos_x"), | ||
v2_column_names().index("tx_pos_y"), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters