Verified Commit 9bf07ff3 authored by Dan Jones's avatar Dan Jones
Browse files

lint: run black

...@@ -10,7 +10,7 @@ alert_schema = { ...@@ -10,7 +10,7 @@ alert_schema = {
"example": "alert", "example": "alert",
"enum": ["alert"], "enum": ["alert"],
}, },
"code": { # changed from alert_ID because reasons "code": { # changed from alert_ID because reasons
"type": "integer", "type": "integer",
"description": "Alert code", "description": "Alert code",
"example": 345, "example": 345,
...@@ -26,10 +26,10 @@ alert_schema = { ...@@ -26,10 +26,10 @@ alert_schema = {
"description": "Timestamp for onboard platform status message", "description": "Timestamp for onboard platform status message",
"example": "2022-12-21T00:00:00Z", "example": "2022-12-21T00:00:00Z",
}, },
"subsystem": { # changed from suggested "source" could be device / subsystem or something "subsystem": { # changed from suggested "source" could be device / subsystem or something
"type": "string", "type": "string",
"description": "System that generated the alert", "description": "System that generated the alert",
"example": "Onboard Fault Monitor", "example": "Onboard Fault Monitor",
}, },
"summary": { "summary": {
"type": "string", "type": "string",
...@@ -39,8 +39,8 @@ alert_schema = { ...@@ -39,8 +39,8 @@ alert_schema = {
"details": { "details": {
"type": "string", "type": "string",
"description": "Detailed reason for the alert ", "description": "Detailed reason for the alert ",
"example": "Discrepancy between rudder and actuator positions" + "example": "Discrepancy between rudder and actuator positions"
" : Rudder Pos=10.31°, Steering Actuator Pos=28.65°, Discrepancy=18.33°", + " : Rudder Pos=10.31°, Steering Actuator Pos=28.65°, Discrepancy=18.33°",
}, },
"severity": { "severity": {
"type": "string", "type": "string",
......
...@@ -170,9 +170,8 @@ platform_status_schema = { ...@@ -170,9 +170,8 @@ platform_status_schema = {
"description": "Battery remaining % provided by respective C2", "description": "Battery remaining % provided by respective C2",
"example": 80.2, "example": 80.2,
}, },
# Battery power (kw / float) # Battery power (kw / float)
"battery_output": { # changed from battery_power "battery_output": { # changed from battery_power
"type": "number", "type": "number",
"format": "float", "format": "float",
"description": "Battery output in kW", "description": "Battery output in kW",
...@@ -180,7 +179,7 @@ platform_status_schema = { ...@@ -180,7 +179,7 @@ platform_status_schema = {
}, },
# Bunkers remaining capacity (litres, float) # Bunkers remaining capacity (litres, float)
# Bunkers percentage full (percentage, float) # Bunkers percentage full (percentage, float)
# battery_remaining_capacity is % full if we want both these fields # battery_remaining_capacity is % full if we want both these fields
# these names are going to cause confusion # these names are going to cause confusion
"fuel_remaining_capacity": { "fuel_remaining_capacity": {
"type": "number", "type": "number",
...@@ -198,11 +197,10 @@ platform_status_schema = { ...@@ -198,11 +197,10 @@ platform_status_schema = {
"endurance": { "endurance": {
"type": "number", "type": "number",
"format": "float", "format": "float",
"description": "Estimate of hours of operation remaining " "description": "Estimate of hours of operation remaining "
+ "based on present output or performance", + "based on present output or performance",
"example": 7.4, "example": 7.4,
}, },
"sensor_config": sensor_schema, "sensor_config": sensor_schema,
}, },
"required": [ "required": [
......
...@@ -592,9 +592,8 @@ platform_status_schema = { ...@@ -592,9 +592,8 @@ platform_status_schema = {
"description": "Battery remaining % provided by respective C2", "description": "Battery remaining % provided by respective C2",
"example": 80.2, "example": 80.2,
}, },
# Battery power (kw / float) # Battery power (kw / float)
"battery_output": { # changed from battery_power "battery_output": { # changed from battery_power
"type": "number", "type": "number",
"format": "float", "format": "float",
"description": "Battery output in kW", "description": "Battery output in kW",
...@@ -602,7 +601,7 @@ platform_status_schema = { ...@@ -602,7 +601,7 @@ platform_status_schema = {
}, },
# Bunkers remaining capacity (litres, float) # Bunkers remaining capacity (litres, float)
# Bunkers percentage full (percentage, float) # Bunkers percentage full (percentage, float)
# battery_remaining_capacity is % full if we want both these fields # battery_remaining_capacity is % full if we want both these fields
# these names are going to cause confusion # these names are going to cause confusion
"fuel_remaining_capacity": { "fuel_remaining_capacity": {
"type": "number", "type": "number",
...@@ -620,11 +619,10 @@ platform_status_schema = { ...@@ -620,11 +619,10 @@ platform_status_schema = {
"endurance": { "endurance": {
"type": "number", "type": "number",
"format": "float", "format": "float",
"description": "Estimate of hours of operation remaining " "description": "Estimate of hours of operation remaining "
+ "based on present output or performance", + "based on present output or performance",
"example": 7.4, "example": 7.4,
}, },
"sensor_config": sensor_schema, "sensor_config": sensor_schema,
}, },
"required": [ "required": [
...@@ -646,7 +644,7 @@ alert_schema = { ...@@ -646,7 +644,7 @@ alert_schema = {
"example": "alert", "example": "alert",
"enum": ["alert"], "enum": ["alert"],
}, },
"code": { # changed from alert_ID because reasons "code": { # changed from alert_ID because reasons
"type": "integer", "type": "integer",
"description": "Alert code", "description": "Alert code",
"example": 345, "example": 345,
...@@ -662,10 +660,10 @@ alert_schema = { ...@@ -662,10 +660,10 @@ alert_schema = {
"description": "Timestamp for onboard platform status message", "description": "Timestamp for onboard platform status message",
"example": "2022-12-21T00:00:00Z", "example": "2022-12-21T00:00:00Z",
}, },
"subsystem": { # changed from suggested "source" could be device / subsystem or something "subsystem": { # changed from suggested "source" could be device / subsystem or something
"type": "string", "type": "string",
"description": "System that generated the alert", "description": "System that generated the alert",
"example": "Onboard Fault Monitor", "example": "Onboard Fault Monitor",
}, },
"summary": { "summary": {
"type": "string", "type": "string",
...@@ -675,8 +673,8 @@ alert_schema = { ...@@ -675,8 +673,8 @@ alert_schema = {
"details": { "details": {
"type": "string", "type": "string",
"description": "Detailed reason for the alert ", "description": "Detailed reason for the alert ",
"example": "Discrepancy between rudder and actuator positions" + "example": "Discrepancy between rudder and actuator positions"
" : Rudder Pos=10.31°, Steering Actuator Pos=28.65°, Discrepancy=18.33°", + " : Rudder Pos=10.31°, Steering Actuator Pos=28.65°, Discrepancy=18.33°",
}, },
"severity": { "severity": {
"type": "string", "type": "string",
...@@ -691,4 +689,4 @@ alert_schema = { ...@@ -691,4 +689,4 @@ alert_schema = {
"code", "code",
"severity", "severity",
], ],
} }
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment