symbench / symbench-athens-client

Python client for Symbench's UAV workflow runs.
Apache License 2.0
0 stars 2 forks source link

Error in FDMFlightMetric.from_fd_metrics if no trim states are found. #118

Closed umesh-timalsina closed 2 years ago

umesh-timalsina commented 2 years ago

If no trim states are found, we get the following error:

m = FDMFlightMetric.from_fd_metrics('./metrics.out')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/umesh/krow/symbench/symbench-athens-client/symbench_athens_client/models/fd_metrics.py", line 179, in from_fd_metrics
    return cls(**flight_metrics_dict)
  File "pydantic/main.py", line 406, in pydantic.main.BaseModel.__init__
pydantic.error_wrappers.ValidationError: 14 validation errors for FDMFlightMetric

This is because that information is not in the metrics file:

 #Metrics
  No trim conditions were found

  Hackathon            1
  Path performance, flight path            1

  Measures of flight path performance (distance in meters, time is seconds, speed in meters per second)