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

Method load

src/astroprint/printfiles/gcode.py:112–118  ·  view source on GitHub ↗
(self, filename)

Source from the content-addressed store, hash-verified

110 parameters['parent']._loadedCallback(parameters['parent']._currentFile, parameters['parent'])
111
112 def load(self, filename):
113 if os.path.isfile(filename):
114 self.filename = filename
115 self._fileSize = os.stat(filename).st_size
116
117 self.progressCallback(0.0)
118 GCodeAnalyzer(self.filename, False, self.cbGCodeAnalyzerReady, self.cbGCodeAnalyzerException, self).makeCalcs()
119
120 def abort(self):
121 self._abort = True

Callers 5

foundation.jsFile · 0.45
_analyzeFileMethod · 0.45

Calls 2

GCodeAnalyzerClass · 0.90
makeCalcsMethod · 0.80

Tested by

no test coverage detected