Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/blueapi/worker/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ class StatusView(BlueapiBaseModel):
description="Target value operation of progress, if known", default=None
)
unit: str = Field(description="Units of progress", default="units")
precision: int = Field(
description="Sensible precision of progress to display", default=3
precision: int | None = Field(
description="Sensible precision of progress to display", default=None
)
done: bool = Field(
description="Whether the operation this status describes is complete",
Expand Down
2 changes: 1 addition & 1 deletion src/blueapi/worker/task_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ def _on_status_event(
initial=initial,
target=target,
unit=unit or "units",
precision=precision or 3,
precision=precision,
done=status.done,
percentage=percentage,
time_elapsed=time_elapsed,
Expand Down