quarchpy 2.2.14__py2.py3-none-any.whl → 2.2.16__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. quarchpy/__pycache__/__init__.cpython-310.pyc +0 -0
  2. quarchpy/__pycache__/_version.cpython-310.pyc +0 -0
  3. quarchpy/__pycache__/connection.cpython-310.pyc +0 -0
  4. quarchpy/__pycache__/install_qps.cpython-310.pyc +0 -0
  5. quarchpy/_version.py +1 -1
  6. quarchpy/config_files/__pycache__/__init__.cpython-310.pyc +0 -0
  7. quarchpy/config_files/__pycache__/quarch_config_parser.cpython-310.pyc +0 -0
  8. quarchpy/connection_specific/__pycache__/StreamChannels.cpython-310.pyc +0 -0
  9. quarchpy/connection_specific/__pycache__/__init__.cpython-310.pyc +0 -0
  10. quarchpy/connection_specific/__pycache__/connection_QIS.cpython-310.pyc +0 -0
  11. quarchpy/connection_specific/__pycache__/connection_QPS.cpython-310.pyc +0 -0
  12. quarchpy/connection_specific/__pycache__/connection_ReST.cpython-310.pyc +0 -0
  13. quarchpy/connection_specific/__pycache__/connection_Serial.cpython-310.pyc +0 -0
  14. quarchpy/connection_specific/__pycache__/connection_TCP.cpython-310.pyc +0 -0
  15. quarchpy/connection_specific/__pycache__/connection_USB.cpython-310.pyc +0 -0
  16. quarchpy/connection_specific/__pycache__/mDNS.cpython-310.pyc +0 -0
  17. quarchpy/connection_specific/connection_QIS.py +1510 -1482
  18. quarchpy/connection_specific/connection_Telnet.py +8 -2
  19. quarchpy/connection_specific/jdk_jres/__pycache__/__init__.cpython-310.pyc +0 -0
  20. quarchpy/connection_specific/jdk_jres/__pycache__/fix_permissions.cpython-310.pyc +0 -0
  21. quarchpy/connection_specific/serial/__pycache__/__init__.cpython-310.pyc +0 -0
  22. quarchpy/connection_specific/serial/__pycache__/serialposix.cpython-310.pyc +0 -0
  23. quarchpy/connection_specific/serial/__pycache__/serialutil.cpython-310.pyc +0 -0
  24. quarchpy/connection_specific/serial/tools/__pycache__/__init__.cpython-310.pyc +0 -0
  25. quarchpy/connection_specific/serial/tools/__pycache__/list_ports.cpython-310.pyc +0 -0
  26. quarchpy/connection_specific/serial/tools/__pycache__/list_ports_common.cpython-310.pyc +0 -0
  27. quarchpy/connection_specific/serial/tools/__pycache__/list_ports_linux.cpython-310.pyc +0 -0
  28. quarchpy/connection_specific/serial/tools/__pycache__/list_ports_posix.cpython-310.pyc +0 -0
  29. quarchpy/debug/__pycache__/SystemTest.cpython-310.pyc +0 -0
  30. quarchpy/debug/__pycache__/__init__.cpython-310.pyc +0 -0
  31. quarchpy/debug/__pycache__/versionCompare.cpython-310.pyc +0 -0
  32. quarchpy/device/__pycache__/__init__.cpython-310.pyc +0 -0
  33. quarchpy/device/__pycache__/device.cpython-310.pyc +0 -0
  34. quarchpy/device/__pycache__/device_fixture_idn_info.cpython-310.pyc +0 -0
  35. quarchpy/device/__pycache__/device_idn_info.cpython-310.pyc +0 -0
  36. quarchpy/device/__pycache__/device_network_info.cpython-310.pyc +0 -0
  37. quarchpy/device/__pycache__/discovered_device.cpython-310.pyc +0 -0
  38. quarchpy/device/__pycache__/packet_processing.cpython-310.pyc +0 -0
  39. quarchpy/device/__pycache__/quarchArray.cpython-310.pyc +0 -0
  40. quarchpy/device/__pycache__/quarchPPM.cpython-310.pyc +0 -0
  41. quarchpy/device/__pycache__/quarchQPS.cpython-310.pyc +0 -0
  42. quarchpy/device/__pycache__/scanDevices.cpython-310.pyc +0 -0
  43. quarchpy/device/quarchArray.py +9 -5
  44. quarchpy/device/quarchPPM.py +7 -10
  45. quarchpy/disk_test/__pycache__/AbsDiskFinder.cpython-310.pyc +0 -0
  46. quarchpy/disk_test/__pycache__/DiskTargetSelection.cpython-310.pyc +0 -0
  47. quarchpy/disk_test/__pycache__/__init__.cpython-310.pyc +0 -0
  48. quarchpy/disk_test/__pycache__/iometerDiskFinder.cpython-310.pyc +0 -0
  49. quarchpy/docs/CHANGES.rst +8 -0
  50. quarchpy/docs/_build/doctrees/CHANGES.doctree +0 -0
  51. quarchpy/docs/_build/doctrees/environment.pickle +0 -0
  52. quarchpy/docs/_build/doctrees/source/changelog.doctree +0 -0
  53. quarchpy/docs/_build/doctrees/source/quarchpy.connection_specific.doctree +0 -0
  54. quarchpy/docs/_build/doctrees/source/quarchpy.device.doctree +0 -0
  55. quarchpy/docs/_build/doctrees/source/quarchpy.qis.doctree +0 -0
  56. quarchpy/docs/_build/html/CHANGES.html +169 -155
  57. quarchpy/docs/_build/html/_sources/CHANGES.rst.txt +11 -1
  58. quarchpy/docs/_build/html/genindex.html +21 -9
  59. quarchpy/docs/_build/html/index.html +80 -78
  60. quarchpy/docs/_build/html/objects.inv +0 -0
  61. quarchpy/docs/_build/html/searchindex.js +1 -1
  62. quarchpy/docs/_build/html/source/changelog.html +249 -233
  63. quarchpy/docs/_build/html/source/quarchpy.connection_specific.html +12 -3
  64. quarchpy/docs/_build/html/source/quarchpy.device.html +82 -28
  65. quarchpy/docs/_build/html/source/quarchpy.html +8 -2
  66. quarchpy/docs/_build/html/source/quarchpy.qis.html +12 -3
  67. quarchpy/fio/__pycache__/FIO_interface.cpython-310.pyc +0 -0
  68. quarchpy/fio/__pycache__/__init__.cpython-310.pyc +0 -0
  69. quarchpy/install_qps.py +99 -62
  70. quarchpy/iometer/__pycache__/__init__.cpython-310.pyc +0 -0
  71. quarchpy/iometer/__pycache__/gen_iometer_template.cpython-310.pyc +0 -0
  72. quarchpy/iometer/__pycache__/iometerFuncs.cpython-310.pyc +0 -0
  73. quarchpy/qis/__pycache__/StreamHeaderInfo.cpython-310.pyc +0 -0
  74. quarchpy/qis/__pycache__/__init__.cpython-310.pyc +0 -0
  75. quarchpy/qis/__pycache__/qisFuncs.cpython-310.pyc +0 -0
  76. quarchpy/qps/__pycache__/__init__.cpython-310.pyc +0 -0
  77. quarchpy/qps/__pycache__/qpsFuncs.cpython-310.pyc +0 -0
  78. quarchpy/qps/qpsFuncs.py +4 -0
  79. quarchpy/user_interface/__pycache__/__init__.cpython-310.pyc +0 -0
  80. quarchpy/user_interface/__pycache__/user_interface.cpython-310.pyc +0 -0
  81. quarchpy/utilities/__pycache__/TestCenter.cpython-310.pyc +0 -0
  82. quarchpy/utilities/__pycache__/TimeValue.cpython-310.pyc +0 -0
  83. quarchpy/utilities/__pycache__/__init__.cpython-310.pyc +0 -0
  84. {quarchpy-2.2.14.dist-info → quarchpy-2.2.16.dist-info}/METADATA +19 -2
  85. {quarchpy-2.2.14.dist-info → quarchpy-2.2.16.dist-info}/RECORD +87 -87
  86. {quarchpy-2.2.14.dist-info → quarchpy-2.2.16.dist-info}/WHEEL +1 -1
  87. {quarchpy-2.2.14.dist-info → quarchpy-2.2.16.dist-info}/top_level.txt +0 -0
@@ -1,15 +1,21 @@
1
- import telnetlib
1
+ from telnetlib import Telnet
2
2
  import time
3
+ #from telnetlib3 import Telnet
4
+
3
5
 
4
6
  class TelnetConn:
5
7
  def __init__(self, ConnTarget):
6
8
  self.ConnTarget = ConnTarget
7
- self.Connection = telnetlib.Telnet(self.ConnTarget)
9
+ self.Connection = Telnet(self.ConnTarget)
8
10
  time.sleep(1)
9
11
  self.Connection.read_very_eager()
10
12
 
11
13
  def close(self):
12
14
  self.Connection.close()
15
+ # The closed device reports as in use if a connection is opened to it within 0.05s.
16
+ # This happens during scanning as rest detects the device and shows it as "in use" Putting a sleep here
17
+ # allows time for the connection to be close,
18
+ time.sleep(0.15)
13
19
  return True
14
20
 
15
21
  def sendCommand(self, Command, expectedResponse = True):
@@ -14,6 +14,7 @@ class quarchArray(quarchDevice):
14
14
 
15
15
  self.ConType=baseDevice.ConType
16
16
  self.connectionObj=baseDevice.connectionObj
17
+ self.baseDevice = baseDevice
17
18
  pass
18
19
 
19
20
  def getSubDevice(self, port):
@@ -51,23 +52,23 @@ class quarchArray(quarchDevice):
51
52
 
52
53
  return moduleList
53
54
 
54
-
55
+ def close_connection(self) -> str:
56
+ self.baseDevice.close_connection()
55
57
 
56
58
 
57
59
  class subDevice(quarchDevice):
58
60
 
59
61
  def __init__(self, baseDevice, port):
60
- self.port = port
62
+ self.port = str(port)
61
63
  self.connectionObj = baseDevice.connectionObj
62
64
  self.ConType = baseDevice.ConType
63
65
  self.baseDevice = baseDevice
64
66
 
65
- def sendCommand(self, CommandString, expectedResponse = True):
66
- portNumb = str(self.port)
67
+ def send_command(self, CommandString, expectedResponse = True):
67
68
  returnStr = ''
68
69
 
69
70
  # Run the base device command
70
- respStr = quarchDevice.send_command(self, CommandString + " <" + portNumb + ">")
71
+ respStr = quarchDevice.send_command(self, CommandString + " <" + str(self.port) + ">")
71
72
  # Split into lines, remove the line number sections then reform the string (removing the wanted 'x.y:' section at the start of each line
72
73
  respLines = respStr.split('\n')
73
74
  for x in respLines:
@@ -77,3 +78,6 @@ class subDevice(quarchDevice):
77
78
  returnStr = returnStr.strip()
78
79
  return returnStr
79
80
 
81
+ def close_connection(self) -> str:
82
+ self.baseDevice.close_connection()
83
+
@@ -61,7 +61,8 @@ class quarchPPM(quarchDevice):
61
61
  separator: str = ",",
62
62
  in_memory_data: Optional[StringIO] = None,
63
63
  output_file_handle: Optional[IO] = None,
64
- use_gzip: Optional[bool] = None
64
+ use_gzip: Optional[bool] = None,
65
+ gzip_compress_level: Optional[int] = 9
65
66
  ) -> str:
66
67
  """
67
68
  Starts a data stream from the device.
@@ -69,11 +70,8 @@ class quarchPPM(quarchDevice):
69
70
  Args:
70
71
  file_name (str): The name of the file to stream data to.
71
72
  file_max_mb (int): The maximum size of the output file in megabytes.
72
- stream_name (str): A descriptive name for the stream.
73
73
  stream_duration (Optional[float]): The duration for the stream to run
74
74
  in seconds. Defaults to None (continuous).
75
- stream_average (Optional[int]): The number of samples to average.
76
- Defaults to None.
77
75
  release_on_data (bool): If True, releases the connection on data
78
76
  reception.
79
77
  separator (str): The separator character to use in the output file.
@@ -83,13 +81,14 @@ class quarchPPM(quarchDevice):
83
81
  stream data to. Defaults to None.
84
82
  use_gzip (Optional[bool]): If True, compresses the output file using
85
83
  gzip. Defaults to None.
84
+ gzip_compress_level (Optional[int]): The gzip compression level
86
85
 
87
86
  Returns:
88
87
  str: The response from the device after starting the stream.
89
88
  """
90
89
  return self.connectionObj.qis.startStream(
91
90
  self.ConString, file_name, file_max_mb, release_on_data, separator, stream_duration,
92
- in_memory_data, output_file_handle, use_gzip
91
+ in_memory_data, output_file_handle, use_gzip, gzip_compress_level
93
92
  )
94
93
 
95
94
  def stream_running_status(self) -> str:
@@ -266,7 +265,7 @@ class quarchPPM(quarchDevice):
266
265
  streamName: str = 'Stream With No Name', streamDuration: Optional[float] = None,
267
266
  streamAverage: Optional[int] = None, releaseOnData: bool = False, separator: str = ",",
268
267
  inMemoryData: Optional[StringIO] = None, outputFileHandle: Optional[IO] = None,
269
- useGzip: Optional[bool] = None) -> str:
268
+ useGzip: Optional[bool] = None, gzipCompressLevel: Optional[int] = 9) -> str:
270
269
  """
271
270
  DEPRECATED: Use start_stream instead.
272
271
 
@@ -275,11 +274,8 @@ class quarchPPM(quarchDevice):
275
274
  Args:
276
275
  fileName (str): The name of the file to stream data to.
277
276
  fileMaxMB (int): The maximum size of the output file in megabytes.
278
- streamName (str): A descriptive name for the stream.
279
277
  streamDuration (Optional[float]): The duration for the stream to run
280
278
  in seconds. Defaults to None (continuous).
281
- streamAverage (Optional[int]): The number of samples to average.
282
- Defaults to None.
283
279
  releaseOnData (bool): If True, releases the connection on data
284
280
  reception.
285
281
  separator (str): The separator character to use in the output file.
@@ -289,6 +285,7 @@ class quarchPPM(quarchDevice):
289
285
  stream data to. Defaults to None.
290
286
  useGzip (Optional[bool]): If True, compresses the output file using
291
287
  gzip. Defaults to None.
288
+ gzipCompressLevel (Optional[int]): The gzip compression level
292
289
 
293
290
  Returns:
294
291
  str: The response from the device after starting the stream.
@@ -298,7 +295,7 @@ class quarchPPM(quarchDevice):
298
295
  stream_duration=streamDuration,
299
296
  release_on_data=releaseOnData, separator=separator,
300
297
  in_memory_data=inMemoryData, output_file_handle=outputFileHandle,
301
- use_gzip=useGzip
298
+ use_gzip=useGzip, gzip_compress_level=gzipCompressLevel
302
299
  )
303
300
 
304
301
  def streamRunningStatus(self) -> str:
quarchpy/docs/CHANGES.rst CHANGED
@@ -14,6 +14,14 @@ Change Log
14
14
  ----------
15
15
 
16
16
 
17
+ 2.2.16
18
+ ------
19
+ - New QPS 1.50 and QIS 1.52
20
+
21
+ 2.2.15
22
+ ------
23
+ - Bugfix for ">" appearing in qis output when streaming at max speed
24
+
17
25
  2.2.14
18
26
  ------
19
27
  - New QPS 1.49 and QIS 1.51