Input Validation
Input validation and formatting.
- exception ConfigureBandValidationError[source]
Exception raised for errors in the configure band input validation.
- class TrackLoadTableFormatting[source]
Class that encapsulates related validation and mapping for TrackLoadTable command.
- check_track_table_input_valid(table, lead_time)[source]
Entry point for track table validation.
- Parameters:
table (
List[float]) – Track table input that is to be validatedlead_time (
int) – The amount of time in seconds from the current time timestamps are allowed
- Raises:
ValueError – table list is not a multiple of 3
TrackTableTimestampError – when timestamps are less than lead_time seconds into the future
- Return type:
None- Returns:
None
- exception TrackTableTimestampError[source]
Class that is used to represent timestamp errors in the track load table.
- validate_configure_band_input(data)[source]
Validate the input JSON for configure_band command.
- Parameters:
data (str) – JSON string containing the configure band parameters.
- Raises:
ConfigureBandValidationError – If the input JSON is invalid.
- Return type:
dict- Returns:
Parsed JSON as a dictionary if valid.