petal-qc 0.0.7__py3-none-any.whl → 0.0.9__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.
Potentially problematic release.
This version of petal-qc might be problematic. Click here for more details.
- petal_qc/__init__.py +1 -1
- petal_qc/metrology/PetalMetrology.py +2 -2
- petal_qc/utils/readGraphana.py +4 -4
- {petal_qc-0.0.7.dist-info → petal_qc-0.0.9.dist-info}/METADATA +1 -1
- {petal_qc-0.0.7.dist-info → petal_qc-0.0.9.dist-info}/RECORD +8 -8
- {petal_qc-0.0.7.dist-info → petal_qc-0.0.9.dist-info}/WHEEL +1 -1
- {petal_qc-0.0.7.dist-info → petal_qc-0.0.9.dist-info}/entry_points.txt +0 -0
- {petal_qc-0.0.7.dist-info → petal_qc-0.0.9.dist-info}/top_level.txt +0 -0
petal_qc/__init__.py
CHANGED
|
@@ -255,7 +255,7 @@ def petal_metrology(ifile, options):
|
|
|
255
255
|
if not check_spec(delta, 0.050):
|
|
256
256
|
dbOut["defects"].append({
|
|
257
257
|
"name": key,
|
|
258
|
-
"description": "Delta {} is {:.3f} mm > 0.
|
|
258
|
+
"description": "Delta {} is {:.3f} mm > 0.050 mm.".format(k, delta)
|
|
259
259
|
})
|
|
260
260
|
|
|
261
261
|
elif "CHECK_" in key:
|
|
@@ -263,7 +263,7 @@ def petal_metrology(ifile, options):
|
|
|
263
263
|
if not check_spec(abs(val), 0.050):
|
|
264
264
|
dbOut["defects"].append({
|
|
265
265
|
"name": key,
|
|
266
|
-
"description": "LOC DIAM delta is {:.3f} mm > 0.
|
|
266
|
+
"description": "LOC DIAM delta is {:.3f} mm > 0.050 mm.".format(abs(val))
|
|
267
267
|
})
|
|
268
268
|
else:
|
|
269
269
|
if val < 0 or val > 0.012:
|
petal_qc/utils/readGraphana.py
CHANGED
|
@@ -33,7 +33,7 @@ class ReadGraphana(object):
|
|
|
33
33
|
|
|
34
34
|
wnd = int(window/2.0+0.5)
|
|
35
35
|
td = datetime.timedelta(minutes=wnd)
|
|
36
|
-
t1 = the_time - td
|
|
36
|
+
t1 = the_time - td
|
|
37
37
|
t2 = the_time + td
|
|
38
38
|
|
|
39
39
|
measure="Temp"
|
|
@@ -41,14 +41,14 @@ class ReadGraphana(object):
|
|
|
41
41
|
query = "select location,value from {measure} where (location =~ /.*{location}*/ and time>'{t1}' and time < '{t2}') group by \"location\"".format(
|
|
42
42
|
measure=measure,
|
|
43
43
|
location=setup,
|
|
44
|
-
t1=t1.astimezone(datetime.
|
|
45
|
-
t2=t2.astimezone(datetime.
|
|
44
|
+
t1=t1.astimezone(datetime.timezone.utc).isoformat(),
|
|
45
|
+
t2=t2.astimezone(datetime.timezone.utc).isoformat()
|
|
46
46
|
)
|
|
47
47
|
|
|
48
48
|
ss = self.client.query(query)
|
|
49
49
|
nitems = 0
|
|
50
50
|
for s in ss:
|
|
51
|
-
|
|
51
|
+
|
|
52
52
|
nitems += len(s)
|
|
53
53
|
|
|
54
54
|
if nitems==0:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: petal_qc
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.9
|
|
4
4
|
Summary: A collection of scripts for Petal CORE QC.
|
|
5
5
|
Author-email: Carlos Lacasta <carlos.lacasta@cern.ch>
|
|
6
6
|
Project-URL: Homepage, https://gitlab.cern.ch/atlas-itk/sw/db/itk-pdb-gtk-gui-utils
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
petal_qc/__init__.py,sha256=
|
|
1
|
+
petal_qc/__init__.py,sha256=74C_6HYOzt6jx9bJgNAs4tkSWt3-4IBQ_TSt9TZyzB4,782
|
|
2
2
|
petal_qc/dashBoard.py,sha256=D2f1rB_saQYiv9mqJT9Sit44jsXviYBvc-b04CjWCa8,3389
|
|
3
3
|
petal_qc/BTreport/CheckBTtests.py,sha256=W8KktZUya5qIkcOc4fNHgrtVnQfI_hPxZvbLCINDnqw,8378
|
|
4
4
|
petal_qc/BTreport/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
5
|
petal_qc/BTreport/bustapeReport.py,sha256=c5VERxPm6BOgW_yN9O_bEPmCYpuwZ_Yt_I2sMVAp0-I,6895
|
|
6
6
|
petal_qc/metrology/Cluster.py,sha256=UtZ5q1EFb8f3qC0hEYBbhRg2pPbW_28aJX2EEMu00Ho,2105
|
|
7
7
|
petal_qc/metrology/DataFile.py,sha256=PbFqy3-WSj69epV5EjhHc1GKhA8I74FmJYOXUjN0V20,1367
|
|
8
|
-
petal_qc/metrology/PetalMetrology.py,sha256=
|
|
8
|
+
petal_qc/metrology/PetalMetrology.py,sha256=vgtfg0yJDdSyMKN0vlfz1uGfx6WXOj7b2x6zZu35dQc,13099
|
|
9
9
|
petal_qc/metrology/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
10
10
|
petal_qc/metrology/all2csv.py,sha256=KTgEGaediylwkGN7gyWyQqUjU0f9FOa3xF4z1W38EcU,1569
|
|
11
11
|
petal_qc/metrology/analyze_locking_points.py,sha256=isIWUsZrBpXgQbmXN4Gl5Zbv5R91UC8jQAU113_gRD8,20531
|
|
@@ -52,10 +52,10 @@ petal_qc/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
52
52
|
petal_qc/utils/all_files.py,sha256=4ja_DkbTYPY3gUPBAZq0p7KB9lnXZx-OCnpTHg9tm4I,1044
|
|
53
53
|
petal_qc/utils/docx_utils.py,sha256=Eye16PF8W0mPBVdQvgFKWxPYV7-hzBgANPDZtUEjzf8,5805
|
|
54
54
|
petal_qc/utils/fit_utils.py,sha256=3KUGWpBMV-bVDkQHWBigXot8chOpjAVBJ5H5b5dbdjk,5349
|
|
55
|
-
petal_qc/utils/readGraphana.py,sha256=
|
|
55
|
+
petal_qc/utils/readGraphana.py,sha256=7EqcjtIWdtV6nyVmlKDHC74Id4a-E3M7j7XSpCyBlSQ,1874
|
|
56
56
|
petal_qc/utils/utils.py,sha256=CqCsNIcEg6FQb3DN70tmqeLVLlQqsRfDzhfGevlnfBc,4035
|
|
57
|
-
petal_qc-0.0.
|
|
58
|
-
petal_qc-0.0.
|
|
59
|
-
petal_qc-0.0.
|
|
60
|
-
petal_qc-0.0.
|
|
61
|
-
petal_qc-0.0.
|
|
57
|
+
petal_qc-0.0.9.dist-info/METADATA,sha256=3R_OrAalGtp3SBWMkQ-4PMrwu9u8jUa-eQvnG4mxFD8,943
|
|
58
|
+
petal_qc-0.0.9.dist-info/WHEEL,sha256=uCRv0ZEik_232NlR4YDw4Pv3Ajt5bKvMH13NUU7hFuI,91
|
|
59
|
+
petal_qc-0.0.9.dist-info/entry_points.txt,sha256=D1vXewVYzKMi3qN-SFm2ttq20GLVsxAScU8a3t24Cr0,201
|
|
60
|
+
petal_qc-0.0.9.dist-info/top_level.txt,sha256=CCo1Xe6kLS79PruhsB6bk2CuL9VFtNdNpgJjYUs4jk4,9
|
|
61
|
+
petal_qc-0.0.9.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|