Tools.html 4.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  2. <html><head><title>Python: module Tools</title>
  3. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  4. </head><body bgcolor="#f0f0f8">
  5. <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
  6. <tr bgcolor="#7799ee">
  7. <td valign=bottom>&nbsp;<br>
  8. <font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong>Tools</strong></big></big></font></td
  9. ><td align=right valign=bottom
  10. ><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:f%3A%5Cwork%5Cqx%5Cdata_analyze_platform%5Clib%5Cbackend%5Ctools.py">f:\work\qx\data_analyze_platform\lib\backend\tools.py</a></font></td></tr></table>
  11. <p><tt>工具类</tt></p>
  12. <p>
  13. <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
  14. <tr bgcolor="#aa55cc">
  15. <td colspan=3 valign=bottom>&nbsp;<br>
  16. <font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
  17. <tr><td bgcolor="#aa55cc"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
  18. <td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="DBManager.html">DBManager</a><br>
  19. <a href="CONFIGURE.PathSetting.html">CONFIGURE.PathSetting</a><br>
  20. <a href="datetime.html">datetime</a><br>
  21. </td><td width="25%" valign=top><a href="math.html">math</a><br>
  22. <a href="numpy.html">numpy</a><br>
  23. <a href="os.html">os</a><br>
  24. </td><td width="25%" valign=top><a href="pandas.html">pandas</a><br>
  25. <a href="pdb.html">pdb</a><br>
  26. <a href="sys.html">sys</a><br>
  27. </td><td width="25%" valign=top><a href="warnings.html">warnings</a><br>
  28. </td></tr></table></td></tr></table><p>
  29. <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
  30. <tr bgcolor="#ee77aa">
  31. <td colspan=3 valign=bottom>&nbsp;<br>
  32. <font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
  33. <tr><td bgcolor="#ee77aa"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
  34. <td width="100%"><dl>
  35. <dt><font face="helvetica, arial"><a href="builtins.html#object">builtins.object</a>
  36. </font></dt><dd>
  37. <dl>
  38. <dt><font face="helvetica, arial"><a href="Tools.html#Tools">Tools</a>
  39. </font></dt></dl>
  40. </dd>
  41. </dl>
  42. <p>
  43. <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
  44. <tr bgcolor="#ffc8d8">
  45. <td colspan=3 valign=bottom>&nbsp;<br>
  46. <font color="#000000" face="helvetica, arial"><a name="Tools">class <strong>Tools</strong></a>(<a href="builtins.html#object">builtins.object</a>)</font></td></tr>
  47. <tr><td bgcolor="#ffc8d8"><tt>&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
  48. <td width="100%">Methods defined here:<br>
  49. <dl><dt><a name="Tools-__init__"><strong>__init__</strong></a>(self)</dt><dd><tt>Initialize&nbsp;self.&nbsp;&nbsp;See&nbsp;help(type(self))&nbsp;for&nbsp;accurate&nbsp;signature.</tt></dd></dl>
  50. <dl><dt><a name="Tools-cal_distance"><strong>cal_distance</strong></a>(self, latitude1, longitude1, latitude2, longitude2, radius=6371)</dt><dd><tt>输入两个地点的经纬度,输出两点间的距离</tt></dd></dl>
  51. <dl><dt><a name="Tools-data_download"><strong>data_download</strong></a>(self, write_path='', sn='', start_time='', end_time='', data_groups=['bms', 'gps'])</dt><dd><tt>数据下载函数<br>
  52. --------------输入参数------------<br>
  53. write_path:&nbsp;文件保存路径,不需要指定文件名<br>
  54. sn:&nbsp;str,&nbsp;电池sn号<br>
  55. start_time:&nbsp;str,&nbsp;开始时间<br>
  56. end_time:&nbsp;str,&nbsp;结束时间<br>
  57. gps_switch:&nbsp;True:获取gps数据;&nbsp;False:不获取gps数据<br>
  58. mode:&nbsp;0:正常取数;&nbsp;1:7255&nbsp;取数<br>
  59. &nbsp;<br>
  60. --------------输出参数------------<br>
  61. bms_data:&nbsp;获取到的bms数据<br>
  62. gps_data:&nbsp;获取到的gps数据</tt></dd></dl>
  63. <hr>
  64. Data descriptors defined here:<br>
  65. <dl><dt><strong>__dict__</strong></dt>
  66. <dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)</tt></dd>
  67. </dl>
  68. <dl><dt><strong>__weakref__</strong></dt>
  69. <dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;object&nbsp;(if&nbsp;defined)</tt></dd>
  70. </dl>
  71. </td></tr></table></td></tr></table><p>
  72. <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
  73. <tr bgcolor="#7799ee">
  74. <td colspan=3 valign=bottom>&nbsp;<br>
  75. <font color="#ffffff" face="helvetica, arial"><big><strong>Author</strong></big></font></td></tr>
  76. <tr><td bgcolor="#7799ee"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
  77. <td width="100%">lmstack</td></tr></table>
  78. </body></html>