petal-qc 0.0.4__py3-none-any.whl → 0.0.5__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/BTreport/CheckBTtests.py +16 -45
- petal_qc/__init__.py +12 -3
- petal_qc/dashBoard.py +117 -10
- petal_qc/metrology/PetalMetrology.py +94 -53
- petal_qc/metrology/analyze_locking_points.py +4 -4
- petal_qc/metrology/compare_Cores.py +45 -42
- petal_qc/metrology/convert_smartscope.py +95 -12
- petal_qc/metrology/coreMetrology.py +2 -2
- petal_qc/metrology/do_Metrology.py +20 -17
- petal_qc/metrology/petal_flatness.py +1 -1
- petal_qc/test/prepareDESYfiles.py +86 -0
- petal_qc/thermal/analyze_IRCore.py +33 -15
- petal_qc/thermal/coreThermal.py +2 -1
- petal_qc/thermal/create_core_report.py +21 -3
- petal_qc/utils/Geometry.py +8 -3
- {petal_qc-0.0.4.dist-info → petal_qc-0.0.5.dist-info}/METADATA +1 -1
- {petal_qc-0.0.4.dist-info → petal_qc-0.0.5.dist-info}/RECORD +20 -19
- {petal_qc-0.0.4.dist-info → petal_qc-0.0.5.dist-info}/WHEEL +1 -1
- {petal_qc-0.0.4.dist-info → petal_qc-0.0.5.dist-info}/entry_points.txt +2 -0
- {petal_qc-0.0.4.dist-info → petal_qc-0.0.5.dist-info}/top_level.txt +0 -0
|
@@ -81,17 +81,35 @@ def create_report(options):
|
|
|
81
81
|
figures = plot_profile_and_golden(golden, core, "path_temp")
|
|
82
82
|
document.add_heading('Temperature along path', level=1)
|
|
83
83
|
document.add_picture(figures[0], True, 12, caption="Petal core .vs. Golden (side 0).")
|
|
84
|
-
document.add_picture(figures[
|
|
84
|
+
document.add_picture(figures[1], True, 12, caption="Petal core .vs. Golden (side 1).")
|
|
85
85
|
for F in figures:
|
|
86
86
|
plt.close(F)
|
|
87
87
|
|
|
88
88
|
figures = plot_profile_and_golden(golden, core, "sensor_avg")
|
|
89
|
-
document.add_heading('Average
|
|
89
|
+
document.add_heading('Average Temperature on sensors areas.', level=1)
|
|
90
90
|
document.add_picture(figures[0], True, 12, caption="Sensors .vs. Golden (side 0).")
|
|
91
|
-
document.add_picture(figures[
|
|
91
|
+
document.add_picture(figures[1], True, 12, caption="Sensors .vs. Golden (side 1).")
|
|
92
92
|
for F in figures:
|
|
93
93
|
plt.close(F)
|
|
94
94
|
|
|
95
|
+
document.add_heading('Comments and Defects.', level=1)
|
|
96
|
+
added_defects = False
|
|
97
|
+
if len(outDB["comments"])>0:
|
|
98
|
+
added_defects = True
|
|
99
|
+
document.add_heading("Comments.", level=2)
|
|
100
|
+
for C in outDB["comments"]:
|
|
101
|
+
document.add_paragraph(C)
|
|
102
|
+
|
|
103
|
+
if len(outDB["defects"])>0:
|
|
104
|
+
added_defects = True
|
|
105
|
+
document.add_heading("Defects.", level=2)
|
|
106
|
+
for D in outDB["defects"]:
|
|
107
|
+
document.add_paragraph("{}: {}".format(D["name"], D["description"]))
|
|
108
|
+
|
|
109
|
+
if not added_defects:
|
|
110
|
+
document.add_paragraph("Petal is GOOD. No comments nor defects found.")
|
|
111
|
+
|
|
112
|
+
|
|
95
113
|
ofile = utils.output_folder(options.folder, "{}-thermal.docx".format(options.SN))
|
|
96
114
|
document.save(ofile)
|
|
97
115
|
|
petal_qc/utils/Geometry.py
CHANGED
|
@@ -534,14 +534,14 @@ class Line(object):
|
|
|
534
534
|
return
|
|
535
535
|
|
|
536
536
|
self.m = delta_y/delta_x
|
|
537
|
-
self.b = -
|
|
537
|
+
self.b = -self.m * n.x + n.y
|
|
538
538
|
self.O = Point(m.x, m.y)
|
|
539
539
|
self.delta = Point(delta_x, delta_y)
|
|
540
540
|
self.V = self.delta.norm()
|
|
541
541
|
|
|
542
542
|
else: # n has to be a number
|
|
543
543
|
self.m = n
|
|
544
|
-
self.b = -
|
|
544
|
+
self.b = -self.m * m.x + m.y
|
|
545
545
|
alpha = math.atan(n)
|
|
546
546
|
self.O = m
|
|
547
547
|
self.V = Point(math.cos(alpha), math.sin(alpha))
|
|
@@ -605,7 +605,12 @@ class Line(object):
|
|
|
605
605
|
|
|
606
606
|
def line_perpendicular_at_point(self, P):
|
|
607
607
|
"""Return the line perpendicular passing by point."""
|
|
608
|
-
|
|
608
|
+
if self.m==0:
|
|
609
|
+
P0 = Point(P.x, P.y+1.0)
|
|
610
|
+
L = Line(P0, P)
|
|
611
|
+
else:
|
|
612
|
+
L = Line(-1.0/self.m, P)
|
|
613
|
+
|
|
609
614
|
return L
|
|
610
615
|
|
|
611
616
|
def line_parallel_at_distance(self, d):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: petal_qc
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.5
|
|
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,28 +1,29 @@
|
|
|
1
|
-
petal_qc/__init__.py,sha256=
|
|
2
|
-
petal_qc/dashBoard.py,sha256=
|
|
3
|
-
petal_qc/BTreport/CheckBTtests.py,sha256=
|
|
1
|
+
petal_qc/__init__.py,sha256=cIoOb3RvjVFo658SpBKBMj8LbpzX-fjQIhbjxL_zDjY,782
|
|
2
|
+
petal_qc/dashBoard.py,sha256=D2f1rB_saQYiv9mqJT9Sit44jsXviYBvc-b04CjWCa8,3389
|
|
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=UoPuvkh2DTnfsMRoSyIHq__SzJeTIEBNhzjptbfFcsQ,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=-nRiObtdXDJDadylq3W2wG4-F9BLEsklvF6ueofBddM,20531
|
|
12
12
|
petal_qc/metrology/cold_noise.py,sha256=PuTaQ73WrQCJdE9ezS4UFmA3atwCuvM0ZsUOYu1ZIBw,3106
|
|
13
|
-
petal_qc/metrology/compare_Cores.py,sha256=
|
|
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
|
-
petal_qc/metrology/convert_smartscope.py,sha256=
|
|
17
|
-
petal_qc/metrology/coreMetrology.py,sha256=
|
|
16
|
+
petal_qc/metrology/convert_smartscope.py,sha256=0vAEYn7ec4qTnLfjphj1QA6tK3vZsXyF6nYYj3jE5Yc,6174
|
|
17
|
+
petal_qc/metrology/coreMetrology.py,sha256=t6qsaQA2dbRtzEcqPdlEkxDVgzbUpmDgiASXvVPSzl0,13667
|
|
18
18
|
petal_qc/metrology/data2csv.py,sha256=2ttMSmfGLPIaOqZGima2dH6sdnSRAFTHlEbSOfW5ebA,1809
|
|
19
|
-
petal_qc/metrology/do_Metrology.py,sha256=
|
|
19
|
+
petal_qc/metrology/do_Metrology.py,sha256=rp_CfBXBSL30mr6nZdN5UwLqljFcsFzmMLEm0YJLmkg,4293
|
|
20
20
|
petal_qc/metrology/flatness4nigel.py,sha256=SUHwn6pCEUWQV_62-_9-VKrmUdL4gVQcSA3aTtYq958,4071
|
|
21
21
|
petal_qc/metrology/gtkutils.py,sha256=1pOTxiE2EZR9zNNNT5cOetga_4NG9DzLaqQPI4c1EzE,3372
|
|
22
|
-
petal_qc/metrology/petal_flatness.py,sha256
|
|
22
|
+
petal_qc/metrology/petal_flatness.py,sha256=4fajnx0mhABDn89VFZvzICD6055A2l6BSgaXgb2rTHI,11395
|
|
23
23
|
petal_qc/metrology/show_data_file.py,sha256=yZPcmMy-1EWWySiBBx0hNB3tPVh19bTr0PDaXSyIF4c,4057
|
|
24
24
|
petal_qc/metrology/testSummary.py,sha256=0BhcEd1BPz2Mbonzi8nyZOzNSzpUqowBFNl5cVutqsk,994
|
|
25
25
|
petal_qc/metrology/test_paralelism.py,sha256=_j__OdUwdXWM494_9HpGPuPHixMwwVphCcvHEfzWi_k,1981
|
|
26
|
+
petal_qc/test/prepareDESYfiles.py,sha256=ao5lRnr5SqcBGiFs2F-3YxuLYRdfRRuwUwzKoPWr74k,2978
|
|
26
27
|
petal_qc/test/test_Graphana.py,sha256=fXcqHzgrfZGjSF-WoMLl96G97XjXVnynHYC-5rKw_-c,1032
|
|
27
28
|
petal_qc/test/test_coreThermal.py,sha256=YRPK3DGG7Tz66K4Kka3euXgUDzW_JlIqSYicMBhb96E,1516
|
|
28
29
|
petal_qc/thermal/CSVImage.py,sha256=Vt2kYmUsZWkQvxcF8fDda3HO1Rb29kPQHnEoHFCqWYo,2038
|
|
@@ -36,16 +37,16 @@ petal_qc/thermal/PetalColorMaps.py,sha256=6CvJHzRdojLHu3BROYSekHw8g_BJ1lJ_edyhov
|
|
|
36
37
|
petal_qc/thermal/Petal_IR_Analysis.py,sha256=8Deh_bJ5B7DdaUV18saboF7fXZ_8Bt1vkUlsk5RqVeo,3910
|
|
37
38
|
petal_qc/thermal/PipeFit.py,sha256=bipXxJGxrwlgbrFv8WJA1Ds7Kj4oUwEyqTIswpgni9o,17214
|
|
38
39
|
petal_qc/thermal/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
39
|
-
petal_qc/thermal/analyze_IRCore.py,sha256=
|
|
40
|
+
petal_qc/thermal/analyze_IRCore.py,sha256=482VoSMPi1_GwbdTimYau7VvS8aNb5TwUkKzXbLIg54,20050
|
|
40
41
|
petal_qc/thermal/contours.py,sha256=ampCKm4byZYKb_4eJFjIkdFIl2bqVXD2mV13d2XUWlw,8244
|
|
41
|
-
petal_qc/thermal/coreThermal.py,sha256=
|
|
42
|
+
petal_qc/thermal/coreThermal.py,sha256=VNm72f9mqrCrj9FXk8Z9ovNHa8NYYPnk9YahIj_CLcg,12858
|
|
42
43
|
petal_qc/thermal/create_IRCore.py,sha256=mnAmDTF_t3AMOA7Wv19yXT1IX4oFCgfHwHpdnamZvmI,7311
|
|
43
|
-
petal_qc/thermal/create_core_report.py,sha256=
|
|
44
|
+
petal_qc/thermal/create_core_report.py,sha256=01WTPXO3IEjAdazQibCaVN_PTgaExrDgXq2XlMslpoc,4935
|
|
44
45
|
petal_qc/thermal/pipe_back.npz,sha256=yooZuVYtHU541HcV6Gh_5B0BqdYAVEvYAuVvMMSY7Jc,3632
|
|
45
46
|
petal_qc/thermal/pipe_front.npz,sha256=DuwruG9C2Z1rLigqWMApY4Orsf1SGUQGKy0Yan8Bk8A,3697
|
|
46
47
|
petal_qc/thermal/pipe_read.py,sha256=HrAtEbf8pMhJDETzkevodiTbuprIOh4yHv6PzpRoz7Q,5040
|
|
47
48
|
petal_qc/thermal/show_IR_petal.py,sha256=vKb8wm9Y7erAdCb93ODREv2qfSexNMfJpV-67wfOhBw,13159
|
|
48
|
-
petal_qc/utils/Geometry.py,sha256=
|
|
49
|
+
petal_qc/utils/Geometry.py,sha256=zlbMcBdyFvmkSXDJzZ36bXDc-Abagksv6fyEXJ3pHek,19869
|
|
49
50
|
petal_qc/utils/Progress.py,sha256=gCti4n2xfCcOTlAff5GchabGE5BCwavvDZYYKdbEsXU,4064
|
|
50
51
|
petal_qc/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
51
52
|
petal_qc/utils/all_files.py,sha256=4ja_DkbTYPY3gUPBAZq0p7KB9lnXZx-OCnpTHg9tm4I,1044
|
|
@@ -53,8 +54,8 @@ petal_qc/utils/docx_utils.py,sha256=Eye16PF8W0mPBVdQvgFKWxPYV7-hzBgANPDZtUEjzf8,
|
|
|
53
54
|
petal_qc/utils/fit_utils.py,sha256=3KUGWpBMV-bVDkQHWBigXot8chOpjAVBJ5H5b5dbdjk,5349
|
|
54
55
|
petal_qc/utils/readGraphana.py,sha256=Ljr3PSkkTw-A8SRfMa77n7RO7ogLewwDy9dkflzKh2M,1869
|
|
55
56
|
petal_qc/utils/utils.py,sha256=CqCsNIcEg6FQb3DN70tmqeLVLlQqsRfDzhfGevlnfBc,4035
|
|
56
|
-
petal_qc-0.0.
|
|
57
|
-
petal_qc-0.0.
|
|
58
|
-
petal_qc-0.0.
|
|
59
|
-
petal_qc-0.0.
|
|
60
|
-
petal_qc-0.0.
|
|
57
|
+
petal_qc-0.0.5.dist-info/METADATA,sha256=tU5wxxl2vXtqQq2qjjpCmbq2aVA9-HnCd6bLOVkqatw,943
|
|
58
|
+
petal_qc-0.0.5.dist-info/WHEEL,sha256=Wyh-_nZ0DJYolHNn1_hMa4lM7uDedD_RGVwbmTjyItk,91
|
|
59
|
+
petal_qc-0.0.5.dist-info/entry_points.txt,sha256=D1vXewVYzKMi3qN-SFm2ttq20GLVsxAScU8a3t24Cr0,201
|
|
60
|
+
petal_qc-0.0.5.dist-info/top_level.txt,sha256=CCo1Xe6kLS79PruhsB6bk2CuL9VFtNdNpgJjYUs4jk4,9
|
|
61
|
+
petal_qc-0.0.5.dist-info/RECORD,,
|
|
File without changes
|