def getWindowAnalyzeFileGivenText(fileName, gcodeText): "Write a commented gcode file for a gcode file." skein = CommentSkein() skein.parseGcode(gcodeText) archive.writeFileMessageEnd('_comment.gcode', fileName, skein.output.getvalue(), 'The commented file is saved as ')
def getWindowAnalyzeFileGivenText( fileName, gcodeText, repository=None): """Write statistics for a gcode file.""" print('') print('') print('Statistics are being generated for the file ' + archive.getSummarizedFileName(fileName) ) if repository is None: repository = settings.getReadRepository( StatisticRepository() ) skein = StatisticSkein() statisticGcode = skein.getCraftedGcode(gcodeText, repository) if repository.printStatistics.value: print( statisticGcode ) if repository.saveStatistics.value: archive.writeFileMessageEnd('.txt', fileName, statisticGcode, 'The statistics file is saved as ')
def getWindowAnalyzeFileGivenText( fileName, gcodeText, repository=None): "Write statistics for a gcode file." print('') print('') print('Statistics are being generated for the file ' + archive.getSummarizedFileName(fileName) ) if repository == None: repository = settings.getReadRepository( StatisticRepository() ) skein = StatisticSkein() statisticGcode = skein.getCraftedGcode(gcodeText, repository) if repository.printStatistics.value: print(statisticGcode) if repository.saveStatistics.value: archive.writeFileMessageEnd('.txt', fileName, statisticGcode, 'The statistics file is saved as ')
def getWindowAnalyzeFileGivenText(fileName, gcodeText): "Write a commented gcode file for a gcode file." skein = CommentSkein() skein.parseGcode(gcodeText) archive.writeFileMessageEnd("_comment.gcode", fileName, skein.output.getvalue(), "The commented file is saved as ")