@@ -380,42 +380,6 @@ def gui_profile_from_dict(payload: dict[str, Any]) -> GuiProfileModel:
|
||||
gui.processing.gpr.imaging_plane_y_m,
|
||||
"gui.processing.gpr",
|
||||
),
|
||||
timing_mode=_optional_string(
|
||||
gpr_object,
|
||||
"timing_mode",
|
||||
gui.processing.gpr.timing_mode,
|
||||
"gui.processing.gpr",
|
||||
),
|
||||
tx_per_segment=_optional_int(
|
||||
gpr_object,
|
||||
"tx_per_segment",
|
||||
gui.processing.gpr.tx_per_segment,
|
||||
"gui.processing.gpr",
|
||||
),
|
||||
plane_mode=_optional_string(
|
||||
gpr_object,
|
||||
"plane_mode",
|
||||
gui.processing.gpr.plane_mode,
|
||||
"gui.processing.gpr",
|
||||
),
|
||||
ground_depth_m=_optional_float(
|
||||
gpr_object,
|
||||
"ground_depth_m",
|
||||
gui.processing.gpr.ground_depth_m,
|
||||
"gui.processing.gpr",
|
||||
),
|
||||
ground_pitch_override_enabled=_optional_bool(
|
||||
gpr_object,
|
||||
"ground_pitch_override_enabled",
|
||||
gui.processing.gpr.ground_pitch_override_enabled,
|
||||
"gui.processing.gpr",
|
||||
),
|
||||
ground_pitch_deg=_optional_float(
|
||||
gpr_object,
|
||||
"ground_pitch_deg",
|
||||
gui.processing.gpr.ground_pitch_deg,
|
||||
"gui.processing.gpr",
|
||||
),
|
||||
render_mode=_optional_string(
|
||||
gpr_object,
|
||||
"render_mode",
|
||||
@@ -634,16 +598,6 @@ def gui_profile_from_dict(payload: dict[str, Any]) -> GuiProfileModel:
|
||||
raise ValueError("gui.processing.gpr.score_mode must be one of: peak, combined")
|
||||
if gui.processing.gpr.motion_mode not in {"int_minus", "int_focus"}:
|
||||
raise ValueError("gui.processing.gpr.motion_mode must be one of: int_minus, int_focus")
|
||||
if gui.processing.gpr.timing_mode not in {"segmented_interleaved", "interleaved"}:
|
||||
raise ValueError(
|
||||
"gui.processing.gpr.timing_mode must be one of: segmented_interleaved, interleaved"
|
||||
)
|
||||
if gui.processing.gpr.tx_per_segment < 1:
|
||||
raise ValueError("gui.processing.gpr.tx_per_segment must be >= 1")
|
||||
if gui.processing.gpr.plane_mode not in {"ground", "const"}:
|
||||
raise ValueError("gui.processing.gpr.plane_mode must be one of: ground, const")
|
||||
if gui.processing.gpr.ground_depth_m < 0.0:
|
||||
raise ValueError("gui.processing.gpr.ground_depth_m must be >= 0")
|
||||
if gui.processing.legacy_gpr.mode not in {"point", "extended"}:
|
||||
raise ValueError("gui.processing.legacy_gpr.mode must be one of: point, extended")
|
||||
if gui.processing.legacy_gpr.render_mode not in {"heatmap", "objects_only"}:
|
||||
@@ -796,12 +750,6 @@ def gui_profile_to_dict(model: GuiProfileModel) -> dict[str, Any]:
|
||||
"background_mean_count": gui.processing.gpr.background_mean_count,
|
||||
"remove_sidelobe_objects_enabled": gui.processing.gpr.remove_sidelobe_objects_enabled,
|
||||
"imaging_plane_y_m": gui.processing.gpr.imaging_plane_y_m,
|
||||
"timing_mode": gui.processing.gpr.timing_mode,
|
||||
"tx_per_segment": gui.processing.gpr.tx_per_segment,
|
||||
"plane_mode": gui.processing.gpr.plane_mode,
|
||||
"ground_depth_m": gui.processing.gpr.ground_depth_m,
|
||||
"ground_pitch_override_enabled": gui.processing.gpr.ground_pitch_override_enabled,
|
||||
"ground_pitch_deg": gui.processing.gpr.ground_pitch_deg,
|
||||
"render_mode": gui.processing.gpr.render_mode,
|
||||
"visible_x_min_m": gui.processing.gpr.visible_x_min_m,
|
||||
"visible_x_max_m": gui.processing.gpr.visible_x_max_m,
|
||||
|
||||
@@ -87,18 +87,6 @@ class GuiGprStateModel:
|
||||
background_mean_count: int = 10
|
||||
remove_sidelobe_objects_enabled: bool = True
|
||||
imaging_plane_y_m: float = 0.0
|
||||
# Acquisition timing model for motion correction: "segmented_interleaved"
|
||||
# (real hardware: Tx segments run sequentially) or "interleaved" (legacy:
|
||||
# all Tx interleave over the whole frame).
|
||||
timing_mode: str = "segmented_interleaved"
|
||||
# Fallback segment size when per-trace capture timestamps are absent.
|
||||
tx_per_segment: int = 2
|
||||
# Imaging plane: "ground" follows the ground given the frame pitch;
|
||||
# "const" is the legacy fixed y = imaging_plane_y_m.
|
||||
plane_mode: str = "ground"
|
||||
ground_depth_m: float = 1.25
|
||||
ground_pitch_override_enabled: bool = False
|
||||
ground_pitch_deg: float = 6.5
|
||||
render_mode: str = "heatmap"
|
||||
visible_x_min_m: float = -2.0
|
||||
visible_x_max_m: float = 2.0
|
||||
|
||||
Reference in New Issue
Block a user