petal-qc 0.0.5__py3-none-any.whl → 0.0.7__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 +3 -3
- petal_qc/metrology/analyze_locking_points.py +4 -4
- petal_qc/metrology/coreMetrology.py +2 -2
- petal_qc/thermal/analyze_IRCore.py +2 -2
- {petal_qc-0.0.5.dist-info → petal_qc-0.0.7.dist-info}/METADATA +1 -1
- {petal_qc-0.0.5.dist-info → petal_qc-0.0.7.dist-info}/RECORD +10 -10
- {petal_qc-0.0.5.dist-info → petal_qc-0.0.7.dist-info}/WHEEL +1 -1
- {petal_qc-0.0.5.dist-info → petal_qc-0.0.7.dist-info}/entry_points.txt +0 -0
- {petal_qc-0.0.5.dist-info → petal_qc-0.0.7.dist-info}/top_level.txt +0 -0
petal_qc/__init__.py
CHANGED
|
@@ -145,10 +145,10 @@ def petal_metrology(ifile, options):
|
|
|
145
145
|
|
|
146
146
|
results["FLATNESS_LOCAL"] = Flatness[1:]
|
|
147
147
|
for i, v in enumerate(Flatness[1:]):
|
|
148
|
-
if not check_spec(v, 0.
|
|
148
|
+
if not check_spec(v, 0.100):
|
|
149
149
|
dbOut["defects"].append({
|
|
150
150
|
"name": "FLATNESS",
|
|
151
|
-
"description": "Flatness of {} is {:.3f} mm > 0.
|
|
151
|
+
"description": "Flatness of {} is {:.3f} mm > 0.100 mm".format(sNames[i+1], v)
|
|
152
152
|
})
|
|
153
153
|
|
|
154
154
|
# Do locator flatness analysis
|
|
@@ -252,7 +252,7 @@ def petal_metrology(ifile, options):
|
|
|
252
252
|
elif key == "REL_POS_DELTA":
|
|
253
253
|
for k, v in val.items():
|
|
254
254
|
delta = np.linalg.norm(v)
|
|
255
|
-
if not check_spec(delta, 0.
|
|
255
|
+
if not check_spec(delta, 0.050):
|
|
256
256
|
dbOut["defects"].append({
|
|
257
257
|
"name": key,
|
|
258
258
|
"description": "Delta {} is {:.3f} mm > 0.025 mm.".format(k, delta)
|
|
@@ -513,12 +513,12 @@ def locking_point_positions(positions, document=None):
|
|
|
513
513
|
dPL2 = np.linalg.norm(positions[1, 0:2] - positions[4, 0:2])
|
|
514
514
|
deltaPL1 = (nPL1-dPL1)
|
|
515
515
|
deltaPL2 = (nPL2-dPL2)
|
|
516
|
-
fPL1 = "PASSED" if abs(deltaPL1) <= 0.
|
|
517
|
-
fPL2 = "PASSED" if abs(deltaPL2) <= 0.
|
|
516
|
+
fPL1 = "PASSED" if abs(deltaPL1) <= 0.050 else "FAILED"
|
|
517
|
+
fPL2 = "PASSED" if abs(deltaPL2) <= 0.050 else "FAILED"
|
|
518
518
|
|
|
519
519
|
for key, val in outDB["REL_POS_DELTA"].items():
|
|
520
520
|
deltaPL = np.linalg.norm(val)
|
|
521
|
-
fPL = "PASSED" if abs(deltaPL) <= 0.
|
|
521
|
+
fPL = "PASSED" if abs(deltaPL) <= 0.050 else "FAILED"
|
|
522
522
|
print("Distance {}: {:.3f} mm ({})".format(key, deltaPL, fPL))
|
|
523
523
|
|
|
524
524
|
if document:
|
|
@@ -559,7 +559,7 @@ def locking_point_positions(positions, document=None):
|
|
|
559
559
|
document.add_paragraph("")
|
|
560
560
|
for key, val in outDB["REL_POS_DELTA"].items():
|
|
561
561
|
deltaPL = np.linalg.norm(val)
|
|
562
|
-
fPL = "PASSED" if abs(deltaPL) <= 0.
|
|
562
|
+
fPL = "PASSED" if abs(deltaPL) <= 0.050 else "FAILED"
|
|
563
563
|
document.add_paragraph("Distance {}: {:.3f} mm ({})".format(key, deltaPL, fPL))
|
|
564
564
|
|
|
565
565
|
return outDB
|
|
@@ -25,7 +25,7 @@ class CommaSeparatedListAction(Action):
|
|
|
25
25
|
"""The actual action."""
|
|
26
26
|
value = np.array(list(map(float, values.split(','))), dtype='float64')
|
|
27
27
|
if value.shape[0] < 3:
|
|
28
|
-
raise
|
|
28
|
+
raise ValueError("{} needs a 3D vector".format(self.dest))
|
|
29
29
|
|
|
30
30
|
setattr(namespace, self.dest, value)
|
|
31
31
|
|
|
@@ -41,7 +41,7 @@ class CoreMetrology(itkdb_gtk.dbGtkUtils.ITkDBWindow):
|
|
|
41
41
|
pannel_size: size of message panel.
|
|
42
42
|
|
|
43
43
|
"""
|
|
44
|
-
super().__init__(session=session, title=title,
|
|
44
|
+
super().__init__(session=session, title=title, help_link=__HELP__)
|
|
45
45
|
|
|
46
46
|
self.data_file = None
|
|
47
47
|
self.folder = None
|
|
@@ -482,8 +482,8 @@ def analyze_petal_cores(files, golden, options):
|
|
|
482
482
|
if noutsiders>0:
|
|
483
483
|
dbOut["defects"].append(
|
|
484
484
|
{"name": key,
|
|
485
|
-
|
|
486
|
-
|
|
485
|
+
"description": "{} in side {}: {} points out of acceptance band. {}".format(key, iside, noutsiders, get_array_as_string(val[2])),
|
|
486
|
+
"properties": {"msg": "{} > {}".format(val[1], get_acceptance_band())}
|
|
487
487
|
}
|
|
488
488
|
)
|
|
489
489
|
dbOut["passed"] = (len(dbOut["defects"]) == 0)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: petal_qc
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.7
|
|
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,20 +1,20 @@
|
|
|
1
|
-
petal_qc/__init__.py,sha256=
|
|
1
|
+
petal_qc/__init__.py,sha256=ECtaEpYV5mLbxlmcTh4ahWT8wMwVyhw4LsHBLAt75BY,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=nzkjFIbowaRPEJAtsMqdAIjAOwV6TlNZjGKajk8GLPc,13099
|
|
9
9
|
petal_qc/metrology/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
10
10
|
petal_qc/metrology/all2csv.py,sha256=KTgEGaediylwkGN7gyWyQqUjU0f9FOa3xF4z1W38EcU,1569
|
|
11
|
-
petal_qc/metrology/analyze_locking_points.py,sha256
|
|
11
|
+
petal_qc/metrology/analyze_locking_points.py,sha256=isIWUsZrBpXgQbmXN4Gl5Zbv5R91UC8jQAU113_gRD8,20531
|
|
12
12
|
petal_qc/metrology/cold_noise.py,sha256=PuTaQ73WrQCJdE9ezS4UFmA3atwCuvM0ZsUOYu1ZIBw,3106
|
|
13
13
|
petal_qc/metrology/compare_Cores.py,sha256=0VLpsxav0TKggkGhbeoyYNMM4hVjEiE-xMOQMRf4oXI,6807
|
|
14
14
|
petal_qc/metrology/comparisonTable.py,sha256=6Zmh-x0ahs28ZJQuHMrIiRcblUmTN1_-1otFSRNMPds,1743
|
|
15
15
|
petal_qc/metrology/convert_mitutoyo.py,sha256=HdXQzFL5y7r8qXDzti91VItDQ-y6D9rEAYknn4yHwBs,5449
|
|
16
16
|
petal_qc/metrology/convert_smartscope.py,sha256=0vAEYn7ec4qTnLfjphj1QA6tK3vZsXyF6nYYj3jE5Yc,6174
|
|
17
|
-
petal_qc/metrology/coreMetrology.py,sha256=
|
|
17
|
+
petal_qc/metrology/coreMetrology.py,sha256=aNRlNLAHc_0r36dObpkEKkCSrO9JZZBvZP6O2ubPgGg,13673
|
|
18
18
|
petal_qc/metrology/data2csv.py,sha256=2ttMSmfGLPIaOqZGima2dH6sdnSRAFTHlEbSOfW5ebA,1809
|
|
19
19
|
petal_qc/metrology/do_Metrology.py,sha256=rp_CfBXBSL30mr6nZdN5UwLqljFcsFzmMLEm0YJLmkg,4293
|
|
20
20
|
petal_qc/metrology/flatness4nigel.py,sha256=SUHwn6pCEUWQV_62-_9-VKrmUdL4gVQcSA3aTtYq958,4071
|
|
@@ -37,7 +37,7 @@ petal_qc/thermal/PetalColorMaps.py,sha256=6CvJHzRdojLHu3BROYSekHw8g_BJ1lJ_edyhov
|
|
|
37
37
|
petal_qc/thermal/Petal_IR_Analysis.py,sha256=8Deh_bJ5B7DdaUV18saboF7fXZ_8Bt1vkUlsk5RqVeo,3910
|
|
38
38
|
petal_qc/thermal/PipeFit.py,sha256=bipXxJGxrwlgbrFv8WJA1Ds7Kj4oUwEyqTIswpgni9o,17214
|
|
39
39
|
petal_qc/thermal/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
40
|
-
petal_qc/thermal/analyze_IRCore.py,sha256=
|
|
40
|
+
petal_qc/thermal/analyze_IRCore.py,sha256=LDmS4eTn2o-TQzFoFVoBwCsXwi9-n-Z5ZCFedkHaq68,20053
|
|
41
41
|
petal_qc/thermal/contours.py,sha256=ampCKm4byZYKb_4eJFjIkdFIl2bqVXD2mV13d2XUWlw,8244
|
|
42
42
|
petal_qc/thermal/coreThermal.py,sha256=VNm72f9mqrCrj9FXk8Z9ovNHa8NYYPnk9YahIj_CLcg,12858
|
|
43
43
|
petal_qc/thermal/create_IRCore.py,sha256=mnAmDTF_t3AMOA7Wv19yXT1IX4oFCgfHwHpdnamZvmI,7311
|
|
@@ -54,8 +54,8 @@ petal_qc/utils/docx_utils.py,sha256=Eye16PF8W0mPBVdQvgFKWxPYV7-hzBgANPDZtUEjzf8,
|
|
|
54
54
|
petal_qc/utils/fit_utils.py,sha256=3KUGWpBMV-bVDkQHWBigXot8chOpjAVBJ5H5b5dbdjk,5349
|
|
55
55
|
petal_qc/utils/readGraphana.py,sha256=Ljr3PSkkTw-A8SRfMa77n7RO7ogLewwDy9dkflzKh2M,1869
|
|
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.7.dist-info/METADATA,sha256=T0J3-GyiU8lX-JOLNlcKBOFoms8EuK-fd7GgxQ5Uzes,943
|
|
58
|
+
petal_qc-0.0.7.dist-info/WHEEL,sha256=R0nc6qTxuoLk7ShA2_Y-UWkN8ZdfDBG2B6Eqpz2WXbs,91
|
|
59
|
+
petal_qc-0.0.7.dist-info/entry_points.txt,sha256=D1vXewVYzKMi3qN-SFm2ttq20GLVsxAScU8a3t24Cr0,201
|
|
60
|
+
petal_qc-0.0.7.dist-info/top_level.txt,sha256=CCo1Xe6kLS79PruhsB6bk2CuL9VFtNdNpgJjYUs4jk4,9
|
|
61
|
+
petal_qc-0.0.7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|