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

Method reportNewLayer

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

Source from the content-addressed store, hash-verified

634 eventManager().fire(Events.PRINTINGFLOW_CHANGE, {"amount": amount})
635
636 def reportNewLayer(self):
637 self._currentLayer += 1
638 eventManager().fire(Events.LAYER_CHANGE, {"layer": self.getCurrentLayer()})
639
640 #This function should be deprecated
641 def mcLayerChange(self, layer):

Callers 1

runMethod · 0.45

Calls 3

getCurrentLayerMethod · 0.95
eventManagerFunction · 0.90
fireMethod · 0.80

Tested by

no test coverage detected