From 377c519180039a8aca125796bdbf7d9f2955a15d Mon Sep 17 00:00:00 2001 From: Benjamin Pelletier Date: Fri, 3 Nov 2023 20:15:40 +0000 Subject: [PATCH] Fix operator location check with unspecified location --- .../astm/netrid/common_dictionary_evaluator.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/monitoring/uss_qualifier/scenarios/astm/netrid/common_dictionary_evaluator.py b/monitoring/uss_qualifier/scenarios/astm/netrid/common_dictionary_evaluator.py index 4992420cb1..3d5ea63b2d 100644 --- a/monitoring/uss_qualifier/scenarios/astm/netrid/common_dictionary_evaluator.py +++ b/monitoring/uss_qualifier/scenarios/astm/netrid/common_dictionary_evaluator.py @@ -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)