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

Method cbGCodeAnalyzerReady

src/astroprint/printer/marlin/comm.py:692–708  ·  view source on GitHub ↗
(self,timePerLayers,totalPrintTime,layerCount,size,layer_height,total_filament,parent)

Source from the content-addressed store, hash-verified

690 self.timerCalculator = None
691
692 def cbGCodeAnalyzerReady(self,timePerLayers,totalPrintTime,layerCount,size,layer_height,total_filament,parent):
693
694 self.timePerLayers = timePerLayers
695
696 if not self.totalPrintTime:
697 self.totalPrintTime = totalPrintTime*1.07
698
699 self.layerCount = layerCount
700
701 self.size = size
702
703 self.layer_height = layer_height
704
705 self.total_filament = None#total_filament has not got any information
706
707 if self._callback and self._callback.analyzedInfoDecider:
708 self._callback.analyzedInfoDecider(self.timePerLayers, self.totalPrintTime)
709
710 def cbGCodeAnalyzerException(self,parameters):
711 self._logger.warn("There was a problem using /usr/bin/astroprint/GCodeAnalyzer... using alternative algorithm")

Callers

nothing calls this directly

Calls 1

analyzedInfoDeciderMethod · 0.80

Tested by

no test coverage detected