From: daid Date: Wed, 25 Apr 2012 13:49:43 +0000 (+0200) Subject: Report total time spend slicing after project planner slice X-Git-Tag: RC3~16 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=bfaebcce3ecc7e49fa8a7e812f9d19ac4b2c41df;p=cura.git Report total time spend slicing after project planner slice --- diff --git a/Cura/gui/projectPlanner.py b/Cura/gui/projectPlanner.py index 18027f67..31162255 100644 --- a/Cura/gui/projectPlanner.py +++ b/Cura/gui/projectPlanner.py @@ -610,6 +610,7 @@ class ProjectSliceProgressWindow(wx.Frame): self.prevStep = 'start' self.totalDoneFactor = 0.0 self.startTime = time.time() + self.sliceStartTime = time.time() #How long does each step take compared to the others. This is used to make a better scaled progress bar, and guess time left. # TODO: Duplicate with sliceProgressPanel, move to sliceRun. @@ -724,12 +725,15 @@ class ProjectSliceProgressWindow(wx.Frame): os.remove(action.filename[: action.filename.rfind('.')] + "_export.project_tmp") wx.CallAfter(self.progressGauge.SetValue, 10000) + self.totalDoneFactor = 0.0 wx.CallAfter(self.progressGauge2.SetValue, self.actionList.index(action) + 1) resultFile.write(';TYPE:CUSTOM\n') resultFile.write(profile.getAlterationFileContents('end.gcode')) resultFile.close() self.abort = True + sliceTime = time.time() - self.sliceStartTime + wx.CallAfter(self.statusText.SetLabel, 'Slicing took: %d:%d' % (sliceTime / 60, sliceTime % 60)) wx.CallAfter(self.abortButton.SetLabel, 'Close') def main(): diff --git a/Cura/gui/sliceProgessPanel.py b/Cura/gui/sliceProgessPanel.py index 172565b5..3c87e22a 100644 --- a/Cura/gui/sliceProgessPanel.py +++ b/Cura/gui/sliceProgessPanel.py @@ -63,7 +63,7 @@ class sliceProgessPanel(wx.Panel): print filename, self.filelist.index(filename) if self.filelist.index(filename) > 0: profile.putProfileSetting('fan_enabled', 'False') - profile.putProfileSetting('skirt_lines', '0') + profile.putProfileSetting('skirt_line_count', '0') if len(self.filelist) > 1: profile.putProfileSetting('add_start_end_gcode', 'False') profile.putProfileSetting('gcode_extension', 'multi_extrude_tmp')