Formatting

This commit is contained in:
Nicolas Mowen 2024-03-23 09:12:58 -06:00
parent 90be56e635
commit 6a3d15f1e1
3 changed files with 8 additions and 5 deletions

View File

@ -78,7 +78,12 @@ class ExternalEventProcessor:
def finish_manual_event(self, event_id: str, end_time: float) -> None:
"""Finish external event with indeterminate duration."""
self.event_sender.publish(
(EventTypeEnum.api, EventStateEnum.end, None, {"id": event_id, "end_time": end_time})
(
EventTypeEnum.api,
EventStateEnum.end,
None,
{"id": event_id, "end_time": end_time},
)
)
def _write_images(

View File

@ -11,4 +11,4 @@ class EventTypeEnum(str, Enum):
class EventStateEnum(str, Enum):
start = "start"
update = "update"
end = "end"
end = "end"

View File

@ -536,9 +536,7 @@ class CameraState:
):
max_target_box = self.ptz_autotracker_thread.ptz_autotracker.tracked_object_metrics[
self.name
][
"max_target_box"
]
]["max_target_box"]
side_length = max_target_box * (
max(
self.camera_config.detect.width,