style(perception): format streaming lifecycle guards
This commit is contained in:
@@ -138,7 +138,8 @@ class PilotController:
|
|||||||
try:
|
try:
|
||||||
if getattr(args, "telemetry_snapshot", None):
|
if getattr(args, "telemetry_snapshot", None):
|
||||||
self.telemetry = RuntimeTelemetryPublisher(
|
self.telemetry = RuntimeTelemetryPublisher(
|
||||||
self.runtime, Path(args.telemetry_snapshot),
|
self.runtime,
|
||||||
|
Path(args.telemetry_snapshot),
|
||||||
"K1 DDRNet + RF-DETR + LiDAR + TGS",
|
"K1 DDRNet + RF-DETR + LiDAR + TGS",
|
||||||
)
|
)
|
||||||
if control_config:
|
if control_config:
|
||||||
|
|||||||
@@ -301,9 +301,7 @@ class StreamingIngress:
|
|||||||
with suppress(RuntimeError): # Already replaced, stopping, or fenced.
|
with suppress(RuntimeError): # Already replaced, stopping, or fenced.
|
||||||
self.runtime.pause_input(
|
self.runtime.pause_input(
|
||||||
self.input_epoch,
|
self.input_epoch,
|
||||||
"input-disconnected"
|
"input-disconnected" if isinstance(exc, InputInterrupted) else "source-gap",
|
||||||
if isinstance(exc, InputInterrupted)
|
|
||||||
else "source-gap",
|
|
||||||
)
|
)
|
||||||
elif self.opened:
|
elif self.opened:
|
||||||
self.runtime.mailbox.finish(self.error)
|
self.runtime.mailbox.finish(self.error)
|
||||||
|
|||||||
Reference in New Issue
Block a user