Skip to content

Commit

Permalink
Fix operator location check with unspecified location
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminPelletier committed Nov 3, 2023
1 parent ef76e72 commit 377c519
Showing 1 changed file with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -617,17 +617,12 @@ def _evaluate_operator_location(
participants: List[str],
):
if self._rid_version == RIDVersion.f3411_22a:
if not position_obs:
return # Operator location is optional and there was no location specified

with self._test_scenario.check(
"Operator Location consistency with Common Dictionary", participants
) as check:
if not position_obs:
check.record_failed(
"Missing Operator Location position",
details=f"Invalid position: {position_obs}",
severity=Severity.Medium,
)
return

lat = position_obs.lat
try:
lat = validate_lat(lat)
Expand Down

0 comments on commit 377c519

Please sign in to comment.