Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/acconeer/exptool/a121/algo/presence/_subsweep_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,11 @@ def _get_profile_subsweeps(
curr_point += step * APPROX_BASE_STEP_LENGTH_M
n_points_in_subsweep += 1
curr_point_ind = int(round(curr_point / APPROX_BASE_STEP_LENGTH_M))

# Ensure at least 1 point to prevent validation error
if n_points_in_subsweep == 0:
n_points_in_subsweep = 1

subsweeps_configs.append(
a121.SubsweepConfig(
profile=profile,
Expand Down