Skip to content

Commit 8151632

Browse files
committed
Run formatter
1 parent 7a06482 commit 8151632

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

modules/telemetry/v1/data_block.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def parse(block_subtype: DataBlockSubtype, payload: bytes) -> DataBlock:
108108
DataBlockSubtype.LIN_ACCEL_REL: RelativeLinearAccelerationDB,
109109
DataBlockSubtype.LIN_ACCEL_ABS: AbsoluteLinearAccelerationDB,
110110
DataBlockSubtype.ANGULAR_VELOCITY: AngularVelocityDB,
111-
DataBlockSubtype.VOLTAGE: VoltageDB
111+
DataBlockSubtype.VOLTAGE: VoltageDB,
112112
}
113113

114114
subtype = SUBTYPE_CLASSES.get(block_subtype)
@@ -438,6 +438,7 @@ def __iter__(self):
438438
yield "mission_time", self.mission_time
439439
yield "angular_velocity", {"x": self.x_axis, "y": self.y_axis, "z": self.z_axis, "magnitude": self.magnitude}
440440

441+
441442
class VoltageDB(DataBlock):
442443
"""Represents a voltage data block"""
443444

@@ -473,10 +474,11 @@ def __len__(self) -> int:
473474
return 8
474475

475476
def __str__(self):
476-
return f"""{self.__class__.__name__} -> time: {self.mission_time} ms, id: {self.id}, voltage: {self.voltage} mV"""
477+
return (
478+
f"""{self.__class__.__name__} -> time: {self.mission_time} ms, id: {self.id}, voltage: {self.voltage} mV"""
479+
)
477480

478481
def __iter__(self):
479482
yield "mission_time", self.mission_time
480483
yield "id", self.id
481484
yield "voltage", self.voltage
482-

0 commit comments

Comments
 (0)