PageRenderTime 56ms CodeModel.GetById 25ms RepoModel.GetById 1ms app.codeStats 0ms

/skein_engines/skeinforge-40/documentation/skeinforge_application.skeinforge_plugins.analyze_plugins.statistic.html

https://github.com/geoffd123/ReplicatorG
HTML | 185 lines | 158 code | 27 blank | 0 comment | 0 complexity | 9312733f82523658776c9b17cb7765a0 MD5 | raw file
  1. <!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  2. <html><head><title>Python: module skeinforge_application.skeinforge_plugins.analyze_plugins.statistic</title>
  3. </head><body bgcolor="#f0f0f8">
  4. <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
  5. <tr bgcolor="#7799ee">
  6. <td valign=bottom>&nbsp;<br>
  7. <font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong><a href="skeinforge_application.html"><font color="#ffffff">skeinforge_application</font></a>.<a href="skeinforge_application.skeinforge_plugins.html"><font color="#ffffff">skeinforge_plugins</font></a>.<a href="skeinforge_application.skeinforge_plugins.analyze_plugins.html"><font color="#ffffff">analyze_plugins</font></a>.statistic</strong></big></big> ($Date: 2008/21/04 $)</font></td
  8. ><td align=right valign=bottom
  9. ><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/enrique/Desktop/backup/babbleold/script/reprap/fabmetheus/skeinforge_application/skeinforge_plugins/analyze_plugins/statistic.py">/home/enrique/Desktop/backup/babbleold/script/reprap/fabmetheus/skeinforge_application/skeinforge_plugins/analyze_plugins/statistic.py</a></font></td></tr></table>
  10. <p>
  11. <a href="skeinforge_application.skeinforge_plugins.analyze_plugins.skeinlayer.html">Previous</a> / <a href="skeinforge_application.skeinforge_plugins.analyze_plugins.vectorwrite.html">Next</a> / <a href="contents.html">Contents</a>
  12. </p>
  13. <p><tt><br>
  14. Statistic is a script to generate statistics a gcode file.<br>
  15. <br>
  16. The statistic manual page is at:<br>
  17. <a href="http://fabmetheus.crsndoo.com/wiki/index.php/Skeinforge_Statistic">http://fabmetheus.crsndoo.com/wiki/index.php/Skeinforge_Statistic</a><br>
  18. <br>
  19. <br />
  20. <a href="#Operation">Operation</a><br />
  21. <a href="#Settings">Settings</a><br />
  22. &nbsp;&nbsp;<a href="#Extrusion Diameter over Thickness">Extrusion Diameter over Thickness</a><br />
  23. &nbsp;&nbsp;<a href="#Print Statistics">Print Statistics</a><br />
  24. &nbsp;&nbsp;<a href="#Save Statistics">Save Statistics</a><br />
  25. <a href="#Gcodes">Gcodes</a><br />
  26. <a href="#Examples">Examples</a><br />
  27. <br />
  28. <a name="Operation" id="Operation"></a><h2>Operation</h2>
  29. <hr>
  30. The default 'Activate Statistic' checkbox is on. When it is on, the functions described below will work when called from the skeinforge toolchain, when it is off, the functions will not be called from the toolchain. The functions will still be called, whether or not the 'Activate Statistic' checkbox is on, when statistic is run directly.<br>
  31. <br>
  32. <a name="Settings" id="Settings"></a><h2>Settings</h2>
  33. <hr>
  34. <a name="Extrusion Diameter over Thickness" id="Extrusion Diameter over Thickness"></a><h3>Extrusion Diameter over Thickness</h3>
  35. Default is 1.25.<br>
  36. <br>
  37. The 'Extrusion Diameter over Thickness is the ratio of the extrusion diameter over the layer thickness, the default is 1.25. The extrusion fill density ratio that is printed to the console, ( it is derived quantity not a parameter ) is the area of the extrusion diameter over the extrusion width over the layer thickness. Assuming the extrusion diameter is correct, a high value means the filament will be packed tightly, and the object will be almost as dense as the filament. If the fill density ratio is too high, there could be too little room for the filament, and the extruder will end up plowing through the extra filament. A low fill density ratio means the filaments will be far away from each other, the object will be leaky and light. The fill density ratio with the default extrusion settings is around 0.68.<br>
  38. <br>
  39. <a name="Print Statistics" id="Print Statistics"></a><h3>Print Statistics</h3>
  40. Default is on.<br>
  41. <br>
  42. When the 'Print Statistics' checkbox is on, the statistics will be printed to the console.<br>
  43. <br>
  44. <a name="Save Statistics" id="Save Statistics"></a><h3>Save Statistics</h3>
  45. Default is off.<br>
  46. <br>
  47. When the 'Save Statistics' checkbox is on, the statistics will be saved as a .txt file.<br>
  48. <br>
  49. <a name="Gcodes" id="Gcodes"></a><h2>Gcodes</h2>
  50. <hr>
  51. An explanation of the gcodes is at:<br>
  52. <a href="http://reprap.org/bin/view/Main/Arduino_GCode_Interpreter">http://reprap.org/bin/view/Main/Arduino_GCode_Interpreter</a><br>
  53. <br>
  54. and at:<br>
  55. <a href="http://reprap.org/bin/view/Main/MCodeReference">http://reprap.org/bin/view/Main/MCodeReference</a><br>
  56. <br>
  57. A gode example is at:<br>
  58. <a href="http://forums.reprap.org/file.php?12,file=565">http://forums.reprap.org/file.php?12,file=565</a><br>
  59. <br>
  60. <a name="Examples" id="Examples"></a><h2>Examples</h2>
  61. <hr>
  62. Below are examples of statistic being used. These examples are run in a terminal in the folder which contains Screw Holder_penultimate.gcode and statistic.py. The 'Save Statistics' checkbox is selected.<br>
  63. <br>
  64. &gt; python statistic.py<br>
  65. This brings up the statistic dialog.<br>
  66. <br>
  67. &gt; python statistic.py Screw Holder_penultimate.gcode<br>
  68. The statistic file is saved as Screw_Holder_penultimate_statistic.txt</tt>
  69. <br />
  70. <br />
  71. <p>
  72. <a href="skeinforge_application.skeinforge_plugins.analyze_plugins.skeinlayer.html">Previous</a> / <a href="skeinforge_application.skeinforge_plugins.analyze_plugins.vectorwrite.html">Next</a> / <a href="contents.html">Contents</a>
  73. </p>
  74. <hr>
  75. </p>
  76. <p>
  77. <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
  78. <tr bgcolor="#aa55cc">
  79. <td colspan=3 valign=bottom>&nbsp;<br>
  80. <font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
  81. <tr><td bgcolor="#aa55cc"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
  82. <td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="__init__.html">__init__</a><br>
  83. <a href="fabmetheus_utilities.archive.html">fabmetheus_utilities.archive</a><br>
  84. <a href="cStringIO.html">cStringIO</a><br>
  85. </td><td width="25%" valign=top><a href="fabmetheus_utilities.euclidean.html">fabmetheus_utilities.euclidean</a><br>
  86. <a href="fabmetheus_utilities.gcodec.html">fabmetheus_utilities.gcodec</a><br>
  87. <a href="math.html">math</a><br>
  88. </td><td width="25%" valign=top><a href="fabmetheus_utilities.settings.html">fabmetheus_utilities.settings</a><br>
  89. <a href="skeinforge_application.skeinforge_utilities.skeinforge_polyfile.html">skeinforge_application.skeinforge_utilities.skeinforge_polyfile</a><br>
  90. <a href="skeinforge_application.skeinforge_utilities.skeinforge_profile.html">skeinforge_application.skeinforge_utilities.skeinforge_profile</a><br>
  91. </td><td width="25%" valign=top><a href="sys.html">sys</a><br>
  92. </td></tr></table></td></tr></table><p>
  93. <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
  94. <tr bgcolor="#ee77aa">
  95. <td colspan=3 valign=bottom>&nbsp;<br>
  96. <font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
  97. <tr><td bgcolor="#ee77aa"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
  98. <td width="100%"><dl>
  99. <dt><font face="helvetica, arial"><a href="skeinforge_application.skeinforge_plugins.analyze_plugins.statistic.html#StatisticRepository">StatisticRepository</a>
  100. </font></dt><dt><font face="helvetica, arial"><a href="skeinforge_application.skeinforge_plugins.analyze_plugins.statistic.html#StatisticSkein">StatisticSkein</a>
  101. </font></dt></dl>
  102. <p>
  103. <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
  104. <tr bgcolor="#ffc8d8">
  105. <td colspan=3 valign=bottom>&nbsp;<br>
  106. <font color="#000000" face="helvetica, arial"><a name="StatisticRepository">class <strong>StatisticRepository</strong></a></font></td></tr>
  107. <tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
  108. <td colspan=2><tt>A&nbsp;class&nbsp;to&nbsp;handle&nbsp;the&nbsp;statistics&nbsp;settings.<br>&nbsp;</tt></td></tr>
  109. <tr><td>&nbsp;</td>
  110. <td width="100%">Methods defined here:<br>
  111. <dl><dt><a name="StatisticRepository-__init__"><strong>__init__</strong></a>(self)</dt><dd><tt>Set&nbsp;the&nbsp;default&nbsp;settings,&nbsp;execute&nbsp;title&nbsp;&amp;&nbsp;settings&nbsp;fileName.</tt></dd></dl>
  112. <dl><dt><a name="StatisticRepository-execute"><strong>execute</strong></a>(self)</dt><dd><tt>Write&nbsp;button&nbsp;has&nbsp;been&nbsp;clicked.</tt></dd></dl>
  113. </td></tr></table> <p>
  114. <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
  115. <tr bgcolor="#ffc8d8">
  116. <td colspan=3 valign=bottom>&nbsp;<br>
  117. <font color="#000000" face="helvetica, arial"><a name="StatisticSkein">class <strong>StatisticSkein</strong></a></font></td></tr>
  118. <tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
  119. <td colspan=2><tt>A&nbsp;class&nbsp;to&nbsp;get&nbsp;statistics&nbsp;for&nbsp;a&nbsp;gcode&nbsp;skein.<br>&nbsp;</tt></td></tr>
  120. <tr><td>&nbsp;</td>
  121. <td width="100%">Methods defined here:<br>
  122. <dl><dt><a name="StatisticSkein-__init__"><strong>__init__</strong></a>(self)</dt></dl>
  123. <dl><dt><a name="StatisticSkein-addLine"><strong>addLine</strong></a>(self, line)</dt><dd><tt>Add&nbsp;a&nbsp;line&nbsp;of&nbsp;text&nbsp;and&nbsp;a&nbsp;newline&nbsp;to&nbsp;the&nbsp;output.</tt></dd></dl>
  124. <dl><dt><a name="StatisticSkein-addToPath"><strong>addToPath</strong></a>(self, location)</dt><dd><tt>Add&nbsp;a&nbsp;point&nbsp;to&nbsp;travel&nbsp;and&nbsp;maybe&nbsp;extrusion.</tt></dd></dl>
  125. <dl><dt><a name="StatisticSkein-extruderSet"><strong>extruderSet</strong></a>(self, active)</dt><dd><tt>Maybe&nbsp;increment&nbsp;the&nbsp;number&nbsp;of&nbsp;times&nbsp;the&nbsp;extruder&nbsp;was&nbsp;toggled.</tt></dd></dl>
  126. <dl><dt><a name="StatisticSkein-getCraftedGcode"><strong>getCraftedGcode</strong></a>(self, gcodeText, repository)</dt><dd><tt>Parse&nbsp;gcode&nbsp;text&nbsp;and&nbsp;store&nbsp;the&nbsp;statistics.</tt></dd></dl>
  127. <dl><dt><a name="StatisticSkein-getLocationSetFeedRateToSplitLine"><strong>getLocationSetFeedRateToSplitLine</strong></a>(self, splitLine)</dt><dd><tt>Get&nbsp;location&nbsp;ans&nbsp;set&nbsp;feed&nbsp;rate&nbsp;to&nbsp;the&nbsp;plsit&nbsp;line.</tt></dd></dl>
  128. <dl><dt><a name="StatisticSkein-helicalMove"><strong>helicalMove</strong></a>(self, isCounterclockwise, splitLine)</dt><dd><tt>Get&nbsp;statistics&nbsp;for&nbsp;a&nbsp;helical&nbsp;move.</tt></dd></dl>
  129. <dl><dt><a name="StatisticSkein-linearMove"><strong>linearMove</strong></a>(self, splitLine)</dt><dd><tt>Get&nbsp;statistics&nbsp;for&nbsp;a&nbsp;linear&nbsp;move.</tt></dd></dl>
  130. <dl><dt><a name="StatisticSkein-parseLine"><strong>parseLine</strong></a>(self, line)</dt><dd><tt>Parse&nbsp;a&nbsp;gcode&nbsp;line&nbsp;and&nbsp;add&nbsp;it&nbsp;to&nbsp;the&nbsp;statistics.</tt></dd></dl>
  131. </td></tr></table></td></tr></table><p>
  132. <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
  133. <tr bgcolor="#eeaa77">
  134. <td colspan=3 valign=bottom>&nbsp;<br>
  135. <font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
  136. <tr><td bgcolor="#eeaa77"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
  137. <td width="100%"><dl><dt><a name="-getNewRepository"><strong>getNewRepository</strong></a>()</dt><dd><tt>Get&nbsp;new&nbsp;repository.</tt></dd></dl>
  138. <dl><dt><a name="-getWindowAnalyzeFile"><strong>getWindowAnalyzeFile</strong></a>(fileName)</dt><dd><tt>Write&nbsp;statistics&nbsp;for&nbsp;a&nbsp;gcode&nbsp;file.</tt></dd></dl>
  139. <dl><dt><a name="-getWindowAnalyzeFileGivenText"><strong>getWindowAnalyzeFileGivenText</strong></a>(fileName, gcodeText, repository<font color="#909090">=None</font>)</dt><dd><tt>Write&nbsp;statistics&nbsp;for&nbsp;a&nbsp;gcode&nbsp;file.</tt></dd></dl>
  140. <dl><dt><a name="-main"><strong>main</strong></a>()</dt><dd><tt>Display&nbsp;the&nbsp;statistics&nbsp;dialog.</tt></dd></dl>
  141. <dl><dt><a name="-writeOutput"><strong>writeOutput</strong></a>(fileName, fileNameSuffix, gcodeText<font color="#909090">=''</font>)</dt><dd><tt>Write&nbsp;statistics&nbsp;for&nbsp;a&nbsp;skeinforge&nbsp;gcode&nbsp;file,&nbsp;if&nbsp;'Write&nbsp;Statistics&nbsp;File&nbsp;for&nbsp;Skeinforge&nbsp;Chain'&nbsp;is&nbsp;selected.</tt></dd></dl>
  142. </td></tr></table><p>
  143. <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
  144. <tr bgcolor="#55aa55">
  145. <td colspan=3 valign=bottom>&nbsp;<br>
  146. <font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
  147. <tr><td bgcolor="#55aa55"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
  148. <td width="100%"><strong>__author__</strong> = 'Enrique Perez (perez_enrique@yahoo.com)'<br>
  149. <strong>__date__</strong> = '$Date: 2008/21/04 $'<br>
  150. <strong>__license__</strong> = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html'<br>
  151. <strong>absolute_import</strong> = _Feature((2, 5, 0, 'alpha', 1), (2, 7, 0, 'alpha', 0), 16384)</td></tr></table><p>
  152. <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
  153. <tr bgcolor="#7799ee">
  154. <td colspan=3 valign=bottom>&nbsp;<br>
  155. <font color="#ffffff" face="helvetica, arial"><big><strong>Author</strong></big></font></td></tr>
  156. <tr><td bgcolor="#7799ee"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
  157. <td width="100%">Enrique&nbsp;Perez&nbsp;(perez_enrique@yahoo.com)</td></tr></table>
  158. </body></html>