Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Communications Backbone System
backbone-message-format
Commits
9bf07ff3
Verified
Commit
9bf07ff3
authored
1 year ago
by
Dan Jones
Browse files
Options
Download
Email Patches
Plain Diff
lint: run black
parent
0bc01bdd
Pipeline
#181851
passed with stages
in 1 minute and 3 seconds
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
21 deletions
+17
-21
formats/alert.py
formats/alert.py
+5
-5
formats/platform_status.py
formats/platform_status.py
+3
-5
tests/fixtures/schemas.py
tests/fixtures/schemas.py
+9
-11
No files found.
formats/alert.py
View file @
9bf07ff3
...
@@ -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"
,
...
...
This diff is collapsed.
Click to expand it.
formats/platform_status.py
View file @
9bf07ff3
...
@@ -170,7 +170,6 @@ platform_status_schema = {
...
@@ -170,7 +170,6 @@ 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"
,
...
@@ -202,7 +201,6 @@ platform_status_schema = {
...
@@ -202,7 +201,6 @@ platform_status_schema = {
+
"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"
:
[
...
...
This diff is collapsed.
Click to expand it.
tests/fixtures/schemas.py
View file @
9bf07ff3
...
@@ -592,7 +592,6 @@ platform_status_schema = {
...
@@ -592,7 +592,6 @@ 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"
,
...
@@ -624,7 +623,6 @@ platform_status_schema = {
...
@@ -624,7 +623,6 @@ platform_status_schema = {
+
"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"
:
[
...
@@ -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"
,
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment