quarchpy 2.1.20.dev2__py2.py3-none-any.whl → 2.1.20.dev3__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.
- quarchpy/.idea/.name +1 -1
- quarchpy/.idea/inspectionProfiles/Project_Default.xml +26 -0
- quarchpy/.idea/modules.xml +0 -1
- quarchpy/.idea/quarchpy.iml +1 -4
- quarchpy/.idea/workspace.xml +21 -226
- quarchpy/__pycache__/__init__.cpython-311.pyc +0 -0
- quarchpy/__pycache__/_version.cpython-311.pyc +0 -0
- quarchpy/__pycache__/connection.cpython-311.pyc +0 -0
- quarchpy/__pycache__/run.cpython-311.pyc +0 -0
- quarchpy/_version.py +1 -1
- quarchpy/config_files/__pycache__/__init__.cpython-311.pyc +0 -0
- quarchpy/config_files/__pycache__/quarch_config_parser.cpython-311.pyc +0 -0
- quarchpy/connection_specific/QPS/qis/help.txt +12 -4
- quarchpy/connection_specific/QPS/qis/qis.jar +0 -0
- quarchpy/connection_specific/QPS/qis/qis_lib/CInterface-1.7.8.jar +0 -0
- quarchpy/connection_specific/QPS/qis/qis_lib/Collections-2.4.jar +0 -0
- quarchpy/connection_specific/QPS/qis/qis_lib/Desktop-1.1.jar +0 -0
- quarchpy/connection_specific/QPS/qis/qis_lib/Executor-3.13.jar +0 -0
- quarchpy/connection_specific/QPS/qis/qis_lib/JNA-1.2.jar +0 -0
- quarchpy/connection_specific/QPS/qis/qis_lib/OS-1.8.jar +0 -0
- quarchpy/connection_specific/QPS/qis/qis_lib/QuarchCommon-0.2.9.jar +0 -0
- quarchpy/connection_specific/QPS/qis/qis_lib/SystemTray-4.4.jar +0 -0
- quarchpy/connection_specific/QPS/qis/qis_lib/Updates-1.1.jar +0 -0
- quarchpy/connection_specific/QPS/qis/qis_lib/Utilities-1.46.jar +0 -0
- quarchpy/connection_specific/QPS/qis/qis_lib/commons-csv-1.8.jar +0 -0
- quarchpy/connection_specific/QPS/qis/qis_lib/javassist-3.29.2-GA.jar +0 -0
- quarchpy/connection_specific/QPS/qis/qis_lib/jna-jpms-5.12.1.jar +0 -0
- quarchpy/connection_specific/QPS/qis/qis_lib/jna-platform-jpms-5.12.1.jar +0 -0
- quarchpy/connection_specific/QPS/qis/qis_lib/kotlin-stdlib-1.9.21.jar +0 -0
- quarchpy/connection_specific/QPS/qis/qis_lib/slf4j-api-2.0.9.jar +0 -0
- quarchpy/connection_specific/QPS/qis/qis_lib/slf4j-simple-2.0.9.jar +0 -0
- quarchpy/connection_specific/QPS/qis/resources/filters/Example.txt +36 -0
- quarchpy/connection_specific/QPS/qis/resources/filters/filters.csv +1004 -0
- quarchpy/connection_specific/QPS/qis/resources/filters/iec_filters.xml +26 -0
- quarchpy/connection_specific/QPS/qis/resources/filters/iec_filters.xml.bak +26 -0
- quarchpy/connection_specific/QPS/qps.jar +0 -0
- quarchpy/connection_specific/QPS/qps_lib/QuarchCommon-0.2.9.jar +0 -0
- quarchpy/connection_specific/QPS/qps_lib/commons-lang3-3.12.0.jar +0 -0
- quarchpy/connection_specific/QPS/qps_lib/opencsv-5.9.jar +0 -0
- quarchpy/connection_specific/QPS/qps_lib/qis-1.40.jar +0 -0
- quarchpy/connection_specific/QPS/scriptCommands.txt +2 -2
- quarchpy/connection_specific/__pycache__/StreamChannels.cpython-311.pyc +0 -0
- quarchpy/connection_specific/__pycache__/__init__.cpython-311.pyc +0 -0
- quarchpy/connection_specific/__pycache__/connection_QIS.cpython-311.pyc +0 -0
- quarchpy/connection_specific/__pycache__/connection_QPS.cpython-311.pyc +0 -0
- quarchpy/connection_specific/__pycache__/connection_ReST.cpython-311.pyc +0 -0
- quarchpy/connection_specific/__pycache__/connection_Serial.cpython-311.pyc +0 -0
- quarchpy/connection_specific/__pycache__/connection_TCP.cpython-311.pyc +0 -0
- quarchpy/connection_specific/__pycache__/connection_Telnet.cpython-311.pyc +0 -0
- quarchpy/connection_specific/__pycache__/connection_USB.cpython-311.pyc +0 -0
- quarchpy/connection_specific/__pycache__/connection_mDNS.cpython-311.pyc +0 -0
- quarchpy/connection_specific/connection_QIS.py +5 -3
- quarchpy/connection_specific/connection_QIS.py.bak +1738 -0
- quarchpy/connection_specific/serial/__pycache__/__init__.cpython-311.pyc +0 -0
- quarchpy/connection_specific/serial/__pycache__/serialutil.cpython-311.pyc +0 -0
- quarchpy/connection_specific/serial/__pycache__/serialwin32.cpython-311.pyc +0 -0
- quarchpy/connection_specific/serial/__pycache__/win32.cpython-311.pyc +0 -0
- quarchpy/connection_specific/serial/tools/__pycache__/__init__.cpython-311.pyc +0 -0
- quarchpy/connection_specific/serial/tools/__pycache__/list_ports.cpython-311.pyc +0 -0
- quarchpy/connection_specific/serial/tools/__pycache__/list_ports_common.cpython-311.pyc +0 -0
- quarchpy/connection_specific/serial/tools/__pycache__/list_ports_windows.cpython-311.pyc +0 -0
- quarchpy/connection_specific/usb_libs/__pycache__/libusb1.cpython-311.pyc +0 -0
- quarchpy/connection_specific/usb_libs/__pycache__/usb1.cpython-311.pyc +0 -0
- quarchpy/debug/TextScanIP.py +11 -0
- quarchpy/debug/__pycache__/SystemTest.cpython-311.pyc +0 -0
- quarchpy/debug/__pycache__/__init__.cpython-311.pyc +0 -0
- quarchpy/debug/__pycache__/module_debug.cpython-311.pyc +0 -0
- quarchpy/debug/__pycache__/simple_terminal.cpython-311.pyc +0 -0
- quarchpy/debug/__pycache__/upgrade_quarchpy.cpython-311.pyc +0 -0
- quarchpy/debug/__pycache__/versionCompare.cpython-311.pyc +0 -0
- quarchpy/device/__pycache__/__init__.cpython-311.pyc +0 -0
- quarchpy/device/__pycache__/device.cpython-311.pyc +0 -0
- quarchpy/device/__pycache__/quarchArray.cpython-311.pyc +0 -0
- quarchpy/device/__pycache__/quarchPPM.cpython-311.pyc +0 -0
- quarchpy/device/__pycache__/quarchQPS.cpython-311.pyc +0 -0
- quarchpy/device/__pycache__/scanDevices.cpython-311.pyc +0 -0
- quarchpy/device/device.py.bak +504 -0
- quarchpy/device/quarchPPM.py.bak +67 -0
- quarchpy/device/quarchQPS.py.bak +396 -0
- quarchpy/device/scanDevices.py.bak +130 -108
- quarchpy/disk_test/__pycache__/AbsDiskFinder.cpython-311.pyc +0 -0
- quarchpy/disk_test/__pycache__/DiskTargetSelection.cpython-311.pyc +0 -0
- quarchpy/disk_test/__pycache__/__init__.cpython-311.pyc +0 -0
- quarchpy/disk_test/__pycache__/iometerDiskFinder.cpython-311.pyc +0 -0
- quarchpy/docs/CHANGES.rst.bak +4 -2
- quarchpy/docs/_build/doctrees/CHANGES.doctree +0 -0
- quarchpy/docs/_build/doctrees/environment.pickle +0 -0
- quarchpy/docs/_build/doctrees/source/changelog.doctree +0 -0
- quarchpy/docs/_build/doctrees/source/quarchpy.fio.doctree +0 -0
- quarchpy/docs/_build/html/CHANGES.html +121 -113
- quarchpy/docs/_build/html/_sources/CHANGES.rst.txt +6 -1
- quarchpy/docs/_build/html/_static/alabaster.css +14 -9
- quarchpy/docs/_build/html/_static/basic.css +1 -1
- quarchpy/docs/_build/html/_static/pygments.css +1 -1
- quarchpy/docs/_build/html/genindex.html +9 -27
- quarchpy/docs/_build/html/index.html +62 -60
- quarchpy/docs/_build/html/objects.inv +0 -0
- quarchpy/docs/_build/html/py-modindex.html +7 -11
- quarchpy/docs/_build/html/readme.html +7 -6
- quarchpy/docs/_build/html/search.html +7 -6
- quarchpy/docs/_build/html/searchindex.js +1 -1
- quarchpy/docs/_build/html/source/changelog.html +176 -167
- quarchpy/docs/_build/html/source/licenses.html +7 -6
- quarchpy/docs/_build/html/source/modules.html +8 -7
- quarchpy/docs/_build/html/source/quarchpy.calibration.html +7 -6
- quarchpy/docs/_build/html/source/quarchpy.config_files.html +7 -6
- quarchpy/docs/_build/html/source/quarchpy.connection_specific.html +7 -6
- quarchpy/docs/_build/html/source/quarchpy.debug.html +7 -6
- quarchpy/docs/_build/html/source/quarchpy.device.html +7 -6
- quarchpy/docs/_build/html/source/quarchpy.disk_test.html +7 -6
- quarchpy/docs/_build/html/source/quarchpy.fio.html +9 -34
- quarchpy/docs/_build/html/source/quarchpy.html +8 -16
- quarchpy/docs/_build/html/source/quarchpy.iometer.html +7 -6
- quarchpy/docs/_build/html/source/quarchpy.qis.html +7 -6
- quarchpy/docs/_build/html/source/quarchpy.qps.html +7 -6
- quarchpy/docs/_build/html/source/quarchpy.user_interface.html +7 -6
- quarchpy/docs/_build/html/source/quarchpy.utilities.html +7 -6
- quarchpy/docs/_build/html/source/readme.html +7 -6
- quarchpy/fio/__pycache__/FIO_interface.cpython-311.pyc +0 -0
- quarchpy/fio/__pycache__/__init__.cpython-311.pyc +0 -0
- quarchpy/fio/__pycache__/fioDiskFinder.cpython-311.pyc +0 -0
- quarchpy/iometer/__pycache__/__init__.cpython-311.pyc +0 -0
- quarchpy/iometer/__pycache__/gen_iometer_template.cpython-311.pyc +0 -0
- quarchpy/iometer/__pycache__/iometerFuncs.cpython-311.pyc +0 -0
- quarchpy/qis/__pycache__/StreamHeaderInfo.cpython-311.pyc +0 -0
- quarchpy/qis/__pycache__/__init__.cpython-311.pyc +0 -0
- quarchpy/qis/__pycache__/qisFuncs.cpython-311.pyc +0 -0
- quarchpy/qps/__pycache__/__init__.cpython-311.pyc +0 -0
- quarchpy/qps/__pycache__/qpsFuncs.cpython-311.pyc +0 -0
- quarchpy/qps/qpsFuncs.py.bak +28 -68
- quarchpy/user_interface/__pycache__/__init__.cpython-311.pyc +0 -0
- quarchpy/user_interface/__pycache__/user_interface.cpython-311.pyc +0 -0
- quarchpy/user_interface/user_interface.py.bak +749 -0
- quarchpy/utilities/TestCenter.py.bak +150 -0
- quarchpy/utilities/__pycache__/BitManipulation.cpython-311.pyc +0 -0
- quarchpy/utilities/__pycache__/TestCenter.cpython-311.pyc +0 -0
- quarchpy/utilities/__pycache__/TimeValue.cpython-311.pyc +0 -0
- quarchpy/utilities/__pycache__/Version.cpython-311.pyc +0 -0
- quarchpy/utilities/__pycache__/__init__.cpython-311.pyc +0 -0
- {quarchpy-2.1.20.dev2.dist-info → quarchpy-2.1.20.dev3.dist-info}/METADATA +1 -1
- {quarchpy-2.1.20.dev2.dist-info → quarchpy-2.1.20.dev3.dist-info}/RECORD +143 -114
- quarchpy/_version.py.bak +0 -1
- quarchpy/connection_specific/connection_mDNS.py.bak +0 -48
- quarchpy/debug/SystemTest.py.bak +0 -188
- quarchpy/debug/simple_terminal.py.bak +0 -50
- quarchpy/fio/FIO_interface.py.bak +0 -322
- quarchpy/qis/qisFuncs.py.bak +0 -265
- quarchpy/run.py.bak +0 -283
- {quarchpy-2.1.20.dev2.dist-info → quarchpy-2.1.20.dev3.dist-info}/WHEEL +0 -0
- {quarchpy-2.1.20.dev2.dist-info → quarchpy-2.1.20.dev3.dist-info}/top_level.txt +0 -0
@@ -6,8 +6,8 @@
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" />
|
7
7
|
|
8
8
|
<title>quarchpy.utilities package — quarchpy documentation</title>
|
9
|
-
<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=
|
10
|
-
<link rel="stylesheet" type="text/css" href="../_static/alabaster.css?v=
|
9
|
+
<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=61cd365c" />
|
10
|
+
<link rel="stylesheet" type="text/css" href="../_static/alabaster.css?v=12dfc556" />
|
11
11
|
<script src="../_static/documentation_options.js?v=5929fcd5"></script>
|
12
12
|
<script src="../_static/doctools.js?v=888ff710"></script>
|
13
13
|
<script src="../_static/sphinx_highlight.js?v=dc90522c"></script>
|
@@ -18,8 +18,9 @@
|
|
18
18
|
|
19
19
|
<link rel="stylesheet" href="../_static/custom.css" type="text/css" />
|
20
20
|
|
21
|
+
|
22
|
+
|
21
23
|
|
22
|
-
<meta name="viewport" content="width=device-width, initial-scale=0.9, maximum-scale=0.9" />
|
23
24
|
|
24
25
|
</head><body>
|
25
26
|
|
@@ -193,11 +194,11 @@ on the reporting of the results.</p>
|
|
193
194
|
<div class="clearer"></div>
|
194
195
|
</div>
|
195
196
|
<div class="footer">
|
196
|
-
|
197
|
+
©2020, Quarch Technology Ltd.
|
197
198
|
|
198
199
|
|
|
199
|
-
Powered by <a href="
|
200
|
-
& <a href="https://
|
200
|
+
Powered by <a href="https://www.sphinx-doc.org/">Sphinx 7.2.6</a>
|
201
|
+
& <a href="https://alabaster.readthedocs.io">Alabaster 0.7.16</a>
|
201
202
|
|
202
203
|
|
|
203
204
|
<a href="../_sources/source/quarchpy.utilities.rst.txt"
|
@@ -6,8 +6,8 @@
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" />
|
7
7
|
|
8
8
|
<title>Quarchpy - Readme — quarchpy documentation</title>
|
9
|
-
<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=
|
10
|
-
<link rel="stylesheet" type="text/css" href="../_static/alabaster.css?v=
|
9
|
+
<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=61cd365c" />
|
10
|
+
<link rel="stylesheet" type="text/css" href="../_static/alabaster.css?v=12dfc556" />
|
11
11
|
<script src="../_static/documentation_options.js?v=5929fcd5"></script>
|
12
12
|
<script src="../_static/doctools.js?v=888ff710"></script>
|
13
13
|
<script src="../_static/sphinx_highlight.js?v=dc90522c"></script>
|
@@ -18,8 +18,9 @@
|
|
18
18
|
|
19
19
|
<link rel="stylesheet" href="../_static/custom.css" type="text/css" />
|
20
20
|
|
21
|
+
|
22
|
+
|
21
23
|
|
22
|
-
<meta name="viewport" content="width=device-width, initial-scale=0.9, maximum-scale=0.9" />
|
23
24
|
|
24
25
|
</head><body>
|
25
26
|
|
@@ -129,11 +130,11 @@
|
|
129
130
|
<div class="clearer"></div>
|
130
131
|
</div>
|
131
132
|
<div class="footer">
|
132
|
-
|
133
|
+
©2020, Quarch Technology Ltd.
|
133
134
|
|
134
135
|
|
|
135
|
-
Powered by <a href="
|
136
|
-
& <a href="https://
|
136
|
+
Powered by <a href="https://www.sphinx-doc.org/">Sphinx 7.2.6</a>
|
137
|
+
& <a href="https://alabaster.readthedocs.io">Alabaster 0.7.16</a>
|
137
138
|
|
138
139
|
|
|
139
140
|
<a href="../_sources/source/readme.rst.txt"
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
quarchpy/qps/qpsFuncs.py.bak
CHANGED
@@ -1,9 +1,6 @@
|
|
1
|
-
from threading import Thread, Lock, Event, active_count
|
2
|
-
from queue import Queue, Empty
|
3
|
-
import time
|
4
1
|
import os, sys
|
5
2
|
import datetime
|
6
|
-
import platform
|
3
|
+
import time, platform
|
7
4
|
from quarchpy.qis import isQisRunning, startLocalQis
|
8
5
|
from quarchpy.connection_specific.connection_QIS import QisInterface
|
9
6
|
from quarchpy.connection_specific.connection_QPS import QpsInterface
|
@@ -69,7 +66,7 @@ def isQpsRunning(host='127.0.0.1', port=9822, timeout=0):
|
|
69
66
|
return False
|
70
67
|
|
71
68
|
|
72
|
-
def startLocalQps(keepQisRunning=False, args=[]
|
69
|
+
def startLocalQps(keepQisRunning=False, args=[]):
|
73
70
|
if keepQisRunning:
|
74
71
|
if not isQisRunning():
|
75
72
|
startLocalQis()
|
@@ -79,76 +76,39 @@ def startLocalQps(keepQisRunning=False, args=[], timeout=30):
|
|
79
76
|
QpsPath = os.path.dirname(os.path.abspath(__file__))
|
80
77
|
QpsPath, junk = os.path.split(QpsPath)
|
81
78
|
QpsPath = os.path.join(QpsPath, "connection_specific", "QPS", "qps.jar")
|
82
|
-
|
79
|
+
|
80
|
+
current_direc = os.getcwd()
|
81
|
+
|
83
82
|
os.chdir(os.path.dirname(QpsPath))
|
84
83
|
|
85
|
-
command = "
|
86
|
-
|
84
|
+
command = "-jar \"" + QpsPath + "\""
|
85
|
+
|
86
|
+
currentOs = platform.system()
|
87
|
+
|
88
|
+
if currentOs in "Windows":
|
89
|
+
if "-logging=ON" not in str(args):
|
90
|
+
command = "start /high /b javaw -Djava.awt.headless=true " + command + " " + str(args)
|
91
|
+
else:
|
92
|
+
command = "java " + command + " " + str(args)
|
93
|
+
# command = "start /high /b javaw -Djava.awt.headless=true " + command + " " + str(args) # Running application with this method seems to prevent QPS from logging to terminal
|
94
|
+
# command = command + " -ccs=HIDE" # note: multiple -ccs options ignored
|
87
95
|
os.system(command)
|
88
|
-
|
96
|
+
elif currentOs in "Linux":
|
97
|
+
command = command + "-ccs=HIDE"
|
89
98
|
if sys.version_info[0] < 3:
|
90
|
-
|
99
|
+
os.popen2("java " + command + " 2>&1")
|
91
100
|
else:
|
92
|
-
|
101
|
+
os.popen("java " + command + " 2>&1")
|
102
|
+
else: # default to Windows
|
103
|
+
command = "start /high /b javaw -Djava.awt.headless=true " + command + " " + str(args)
|
104
|
+
command = command + " -ccs=HIDE"
|
105
|
+
os.system(command)
|
93
106
|
|
94
|
-
startTime = time.time()
|
95
107
|
while not isQpsRunning():
|
96
|
-
time.sleep(0.
|
97
|
-
|
98
|
-
|
99
|
-
if time.time() - startTime > timeout:
|
100
|
-
os.chdir(current_dir)
|
101
|
-
raise TimeoutError("QPS failed to launch within timelimit of " + str(timeout) + " sec.")
|
102
|
-
# return current working directory
|
103
|
-
os.chdir(current_dir)
|
108
|
+
time.sleep(0.3)
|
109
|
+
pass
|
104
110
|
|
105
|
-
|
106
|
-
'''
|
107
|
-
Used to read output and place it in a queue for multithreaded reading
|
108
|
-
:param stream:
|
109
|
-
:param q:
|
110
|
-
:param source:
|
111
|
-
:param lock: The lock for the queue
|
112
|
-
:param stop_flag: Flag to exit the loop and close the thread
|
113
|
-
:return: None
|
114
|
-
'''
|
115
|
-
while not stop_flag.is_set():
|
116
|
-
line = stream.readline()
|
117
|
-
if not line:
|
118
|
-
break
|
119
|
-
with lock:
|
120
|
-
q.put((source, line.strip()))
|
121
|
-
|
122
|
-
def _get_std_msg_and_err_from_QPS_process(process):
|
123
|
-
'''
|
124
|
-
Uses multithreading to check for stderr and stdmsg passed by the process that launches QPS
|
125
|
-
This allows the user to understand why QPS might not have appeared.
|
126
|
-
:param process: The Process Used to launch QPS
|
127
|
-
:return: None
|
128
|
-
'''
|
129
|
-
# Read back stdmsg and stderr in seperate threads so they are non blocking
|
130
|
-
q = Queue()
|
131
|
-
lock = Lock()
|
132
|
-
stop_flag = Event()
|
133
|
-
|
134
|
-
t1 = Thread(target=reader, args=[process.stdout, q, 'stdout', lock, stop_flag])
|
135
|
-
t2 = Thread(target=reader, args=[process.stderr, q, 'stderr', lock, stop_flag])
|
136
|
-
t1.start()
|
137
|
-
t2.start()
|
138
|
-
counter = 0
|
139
|
-
# check for stderr or stdmsg from the queue
|
140
|
-
while counter <= 3: # If 3 empty reads from the queue then move on to see if QPS is running.
|
141
|
-
try:
|
142
|
-
source, line = q.get(timeout=1) # Wait for 1 second for new lines
|
143
|
-
counter = 0
|
144
|
-
if source == "stderr":
|
145
|
-
logging.error(f"{source}: {line}")
|
146
|
-
else:
|
147
|
-
print(f"{source}: {line}")
|
148
|
-
except Empty:
|
149
|
-
counter += 1
|
150
|
-
time.sleep(3)
|
151
|
-
stop_flag.set() #Close the threads and return to the main loop where QPS is check to see if its started yet
|
111
|
+
os.chdir(current_direc)
|
152
112
|
|
153
113
|
|
154
114
|
def closeQps(host='127.0.0.1', port=9822):
|
@@ -241,7 +201,7 @@ QPS requires time in mS with no decimal point, so this is converted here
|
|
241
201
|
|
242
202
|
def toQpsTimeStamp(timestamp):
|
243
203
|
"""
|
244
|
-
|
204
|
+
DEPRICATED - QPS expects time passed as a sring and error hadling is done in QPS.
|
245
205
|
Returns the parameter passed as a valid qps timestamp
|
246
206
|
Assumes
|
247
207
|
|
Binary file
|
Binary file
|