Skip to content

Commit a44e6c3

Browse files
committed
feat(OM): add job.times_left.to_pause
1 parent f994dc6 commit a44e6c3

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/dsf/object_model/job/times_left.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ def __init__(self):
1414
self._file = None
1515
# Time left based on the slicer reports (see M73, in s or null)
1616
self._slicer = None
17+
# Time left before the next colour change is expected (see M73 C, in s or null)
18+
self._to_pause = None
1719

1820
@property
1921
def filament(self) -> Union[int, None]:
@@ -41,3 +43,12 @@ def slicer(self) -> Union[int, None]:
4143
@slicer.setter
4244
def slicer(self, value):
4345
self._slicer = int(value) if value is not None else None
46+
47+
@property
48+
def to_pause(self) -> Union[int, None]:
49+
"""Time left before the next colour change is expected (see M73 C, in s or null)"""
50+
return self._to_pause
51+
52+
@to_pause.setter
53+
def to_pause(self, value):
54+
self._to_pause = int(value) if value is not None else None

0 commit comments

Comments
 (0)