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

lint: run black

parent 0bc01bdd
2 merge requests!30Resolve "Release v0.2",!29Resolve "SPINE Support"
Pipeline #181851 passed with stages
in 1 minute and 3 seconds
......@@ -10,7 +10,7 @@ alert_schema = {
"example": "alert",
"enum": ["alert"],
},
"code": { # changed from alert_ID because reasons
"code": { # changed from alert_ID because reasons
"type": "integer",
"description": "Alert code",
"example": 345,
......@@ -26,10 +26,10 @@ alert_schema = {
"description": "Timestamp for onboard platform status message",
"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",
"description": "System that generated the alert",
"example": "Onboard Fault Monitor",
"example": "Onboard Fault Monitor",
},
"summary": {
"type": "string",
......@@ -39,8 +39,8 @@ alert_schema = {
"details": {
"type": "string",
"description": "Detailed reason for the alert ",
"example": "Discrepancy between rudder and actuator positions" +
" : Rudder Pos=10.31°, Steering Actuator Pos=28.65°, Discrepancy=18.33°",
"example": "Discrepancy between rudder and actuator positions"
+ " : Rudder Pos=10.31°, Steering Actuator Pos=28.65°, Discrepancy=18.33°",
},
"severity": {
"type": "string",
......
......@@ -170,9 +170,8 @@ platform_status_schema = {
"description": "Battery remaining % provided by respective C2",
"example": 80.2,
},
# Battery power (kw / float)
"battery_output": { # changed from battery_power
"battery_output": { # changed from battery_power
"type": "number",
"format": "float",
"description": "Battery output in kW",
......@@ -180,7 +179,7 @@ platform_status_schema = {
},
# Bunkers remaining capacity (litres, 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
"fuel_remaining_capacity": {
"type": "number",
......@@ -198,11 +197,10 @@ platform_status_schema = {
"endurance": {
"type": "number",
"format": "float",
"description": "Estimate of hours of operation remaining "
"description": "Estimate of hours of operation remaining "
+ "based on present output or performance",
"example": 7.4,
},
"sensor_config": sensor_schema,
},
"required": [
......
......@@ -592,9 +592,8 @@ platform_status_schema = {
"description": "Battery remaining % provided by respective C2",
"example": 80.2,
},
# Battery power (kw / float)
"battery_output": { # changed from battery_power
"battery_output": { # changed from battery_power
"type": "number",
"format": "float",
"description": "Battery output in kW",
......@@ -602,7 +601,7 @@ platform_status_schema = {
},
# Bunkers remaining capacity (litres, 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
"fuel_remaining_capacity": {
"type": "number",
......@@ -620,11 +619,10 @@ platform_status_schema = {
"endurance": {
"type": "number",
"format": "float",
"description": "Estimate of hours of operation remaining "
"description": "Estimate of hours of operation remaining "
+ "based on present output or performance",
"example": 7.4,
},
"sensor_config": sensor_schema,
},
"required": [
......@@ -646,7 +644,7 @@ alert_schema = {
"example": "alert",
"enum": ["alert"],
},
"code": { # changed from alert_ID because reasons
"code": { # changed from alert_ID because reasons
"type": "integer",
"description": "Alert code",
"example": 345,
......@@ -662,10 +660,10 @@ alert_schema = {
"description": "Timestamp for onboard platform status message",
"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",
"description": "System that generated the alert",
"example": "Onboard Fault Monitor",
"example": "Onboard Fault Monitor",
},
"summary": {
"type": "string",
......@@ -675,8 +673,8 @@ alert_schema = {
"details": {
"type": "string",
"description": "Detailed reason for the alert ",
"example": "Discrepancy between rudder and actuator positions" +
" : Rudder Pos=10.31°, Steering Actuator Pos=28.65°, Discrepancy=18.33°",
"example": "Discrepancy between rudder and actuator positions"
+ " : Rudder Pos=10.31°, Steering Actuator Pos=28.65°, Discrepancy=18.33°",
},
"severity": {
"type": "string",
......@@ -691,4 +689,4 @@ alert_schema = {
"code",
"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