Skip to content

Commit 156f14b

Browse files
committed
Merge branch 'v1.0-rc' into dev
2 parents abc25cf + 9bfc359 commit 156f14b

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

simvue/run.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,18 @@ class Run:
8585
"""
8686

8787
@pydantic.validate_call
88-
def __init__(self, mode: typing.Literal["online", "offline"] = "online") -> None:
88+
def __init__(
89+
self, mode: typing.Literal["online", "offline", "disabled"] = "online"
90+
) -> None:
8991
"""Initialise a new Simvue run
9092
9193
Parameters
9294
----------
93-
mode : Literal['online', 'offline'], optional
94-
mode of running, by default "online"
95+
mode : Literal['online', 'offline', 'disabled'], optional
96+
mode of running
97+
online - objects sent directly to Simvue server
98+
offline - everything is written to disk for later dispatch
99+
disabled - disable monitoring completely
95100
"""
96101
self._uuid: str = f"{uuid.uuid4()}"
97102
self._mode: typing.Literal["online", "offline", "disabled"] = mode

0 commit comments

Comments
 (0)