From f3eb4998a8900030a2a167c826c8bf15381c3e7f Mon Sep 17 00:00:00 2001 From: Steven Gantz Date: Wed, 4 Dec 2024 12:27:08 -0500 Subject: [PATCH] Handle when resp_vol4s are empty From an evaluation standpoint, if a system returns an invalid response, the test harness should fail the evaluation rather than exit with an exception. --- monitoring/uss_qualifier/scenarios/astm/utm/evaluation.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/monitoring/uss_qualifier/scenarios/astm/utm/evaluation.py b/monitoring/uss_qualifier/scenarios/astm/utm/evaluation.py index 79158a97a8..5edd831b4f 100644 --- a/monitoring/uss_qualifier/scenarios/astm/utm/evaluation.py +++ b/monitoring/uss_qualifier/scenarios/astm/utm/evaluation.py @@ -27,6 +27,10 @@ def validate_op_intent_details( # Check that the USS is providing reasonable volume 4D resp_vol4s = op_intent_details.volumes + op_intent_details.off_nominal_volumes + if len(resp_vol4s) == 0: + errors_text.append('OperationalIntentResponse did not return required volumes or off nominal volumes.') + return "; ".join(errors_text) if len(errors_text) > 0 else None + vol4c = Volume4DCollection.from_f3548v21(resp_vol4s) resp_alts = vol4c.meter_altitude_bounds resp_start = vol4c.time_start.datetime