MCPcopy Create free account
hub / github.com/AstroPrint/AstroBox / getCurrentData

Method getCurrentData

src/astroprint/printer/__init__.py:1005–1015  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1003 self._changeEvent.clear()
1004
1005 def getCurrentData(self):
1006 return {
1007 "state": self._state,
1008 "job": self._jobData,
1009 "currentZ": self._currentZ, # this should probably be deprecated
1010 "progress": self._progress,
1011 "offsets": self._offsets,
1012 "tool": self._currentTool,
1013 "printing_speed": self._printingSpeed,
1014 "printing_flow": self._printingFlow
1015 }
1016
1017class PromptManager(object):
1018 def __init__(self):

Callers 1

_workMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected