itkdb-gtk 0.0.16.dev1__tar.gz → 0.0.16.dev3__tar.gz
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 itkdb-gtk might be problematic. Click here for more details.
- {itkdb_gtk-0.0.16.dev1 → itkdb_gtk-0.0.16.dev3}/PKG-INFO +7 -7
- {itkdb_gtk-0.0.16.dev1 → itkdb_gtk-0.0.16.dev3}/README.md +6 -6
- itkdb_gtk-0.0.16.dev1/itkdb_gtk/uploadIVfiles.py → itkdb_gtk-0.0.16.dev3/itkdb_gtk/UploadModuleIV.py +39 -26
- itkdb_gtk-0.0.16.dev1/itkdb_gtk/uploadMultipleTests.py → itkdb_gtk-0.0.16.dev3/itkdb_gtk/UploadMultipleTests.py +2 -2
- itkdb_gtk-0.0.16.dev1/itkdb_gtk/uploadPetalInformation.py → itkdb_gtk-0.0.16.dev3/itkdb_gtk/UploadPetalInformation.py +0 -0
- itkdb_gtk-0.0.16.dev1/itkdb_gtk/uploadTest.py → itkdb_gtk-0.0.16.dev3/itkdb_gtk/UploadTest.py +0 -0
- {itkdb_gtk-0.0.16.dev1 → itkdb_gtk-0.0.16.dev3}/itkdb_gtk/__init__.py +9 -10
- {itkdb_gtk-0.0.16.dev1 → itkdb_gtk-0.0.16.dev3}/itkdb_gtk/dashBoard.py +19 -13
- {itkdb_gtk-0.0.16.dev1 → itkdb_gtk-0.0.16.dev3}/itkdb_gtk.egg-info/PKG-INFO +7 -7
- {itkdb_gtk-0.0.16.dev1 → itkdb_gtk-0.0.16.dev3}/itkdb_gtk.egg-info/SOURCES.txt +7 -7
- {itkdb_gtk-0.0.16.dev1 → itkdb_gtk-0.0.16.dev3}/itkdb_gtk.egg-info/entry_points.txt +1 -1
- {itkdb_gtk-0.0.16.dev1 → itkdb_gtk-0.0.16.dev3}/pyproject.toml +2 -2
- /itkdb_gtk-0.0.16.dev1/itkdb_gtk/getShipments.py → /itkdb_gtk-0.0.16.dev3/itkdb_gtk/GetShipments.py +0 -0
- {itkdb_gtk-0.0.16.dev1 → itkdb_gtk-0.0.16.dev3}/itkdb_gtk/GlueWeight.py +0 -0
- /itkdb_gtk-0.0.16.dev1/itkdb_gtk/groundVITests.py → /itkdb_gtk-0.0.16.dev3/itkdb_gtk/GroundVITests.py +0 -0
- {itkdb_gtk-0.0.16.dev1 → itkdb_gtk-0.0.16.dev3}/itkdb_gtk/ITkDB.desktop +0 -0
- {itkdb_gtk-0.0.16.dev1 → itkdb_gtk-0.0.16.dev3}/itkdb_gtk/ITkDB.svg +0 -0
- {itkdb_gtk-0.0.16.dev1 → itkdb_gtk-0.0.16.dev3}/itkdb_gtk/ITkDBlogin.py +0 -0
- {itkdb_gtk-0.0.16.dev1 → itkdb_gtk-0.0.16.dev3}/itkdb_gtk/ITkDButils.py +0 -0
- /itkdb_gtk-0.0.16.dev1/itkdb_gtk/sendShipments.py → /itkdb_gtk-0.0.16.dev3/itkdb_gtk/SendShipments.py +0 -0
- {itkdb_gtk-0.0.16.dev1 → itkdb_gtk-0.0.16.dev3}/itkdb_gtk/ShowAttachments.py +0 -0
- {itkdb_gtk-0.0.16.dev1 → itkdb_gtk-0.0.16.dev3}/itkdb_gtk/ShowComments.py +0 -0
- {itkdb_gtk-0.0.16.dev1 → itkdb_gtk-0.0.16.dev3}/itkdb_gtk/ShowDefects.py +0 -0
- {itkdb_gtk-0.0.16.dev1 → itkdb_gtk-0.0.16.dev3}/itkdb_gtk/dbGtkUtils.py +0 -0
- {itkdb_gtk-0.0.16.dev1 → itkdb_gtk-0.0.16.dev3}/itkdb_gtk/readAVSdata.py +0 -0
- {itkdb_gtk-0.0.16.dev1 → itkdb_gtk-0.0.16.dev3}/itkdb_gtk/readGoogleSheet.py +0 -0
- {itkdb_gtk-0.0.16.dev1 → itkdb_gtk-0.0.16.dev3}/itkdb_gtk/untrash_component.py +0 -0
- {itkdb_gtk-0.0.16.dev1 → itkdb_gtk-0.0.16.dev3}/itkdb_gtk.egg-info/dependency_links.txt +0 -0
- {itkdb_gtk-0.0.16.dev1 → itkdb_gtk-0.0.16.dev3}/itkdb_gtk.egg-info/requires.txt +0 -0
- {itkdb_gtk-0.0.16.dev1 → itkdb_gtk-0.0.16.dev3}/itkdb_gtk.egg-info/top_level.txt +0 -0
- {itkdb_gtk-0.0.16.dev1 → itkdb_gtk-0.0.16.dev3}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: itkdb_gtk
|
|
3
|
-
Version: 0.0.16.
|
|
3
|
+
Version: 0.0.16.dev3
|
|
4
4
|
Summary: A collection of Gtk based GUI to access ITkDB.
|
|
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
|
|
@@ -41,28 +41,28 @@ Reads the AVS Production Sheet and FAT reports. With this information it creates
|
|
|
41
41
|
the petal core in the DB, if not yet there, make the assembly of the components,
|
|
42
42
|
and uploadas the test runs made at AVS.
|
|
43
43
|
|
|
44
|
-
##
|
|
44
|
+
## UploadTest.py
|
|
45
45
|
A GUI to upload the JSON files corresponding to a test and, also, to add
|
|
46
46
|
attachmetns.
|
|
47
47
|
|
|
48
|
-
##
|
|
48
|
+
## UploadMultipleTests.py
|
|
49
49
|
This will allow to select various test files, or even scan a whole directory to
|
|
50
50
|
find them, and assign comments, defects or attachments to each of the tests found.
|
|
51
51
|
|
|
52
|
-
##
|
|
52
|
+
## GetShipments.py
|
|
53
53
|
Find all shipments to be received at a given site and list them. It handles a
|
|
54
54
|
barcode reader that helps identifying the items actually received for the
|
|
55
55
|
reception. It will finally make the DB aware of the items receptioned.
|
|
56
56
|
|
|
57
|
-
##
|
|
57
|
+
## SendShipments.py
|
|
58
58
|
Create a new shipment. Allows to add items with the QR reader as well as from a
|
|
59
59
|
GUI dialog. One can add comments and attachments to the shipment.
|
|
60
60
|
|
|
61
|
-
##
|
|
61
|
+
## GroundVITests.py
|
|
62
62
|
Allows to upload and enter valueos, comments and defects for those items in the gounding
|
|
63
63
|
and visual instpections tests of the petal core.
|
|
64
64
|
|
|
65
|
-
##
|
|
65
|
+
## UploadModuleIV.py
|
|
66
66
|
The idea behind this is that we messure the IV on a Ring module and on only one of the to Half modules. The IV of the remaining half modules is derived from the other 2. Eventually the IV test can be uploaded to the DB.
|
|
67
67
|
|
|
68
68
|
## dashBoard.py
|
|
@@ -24,28 +24,28 @@ Reads the AVS Production Sheet and FAT reports. With this information it creates
|
|
|
24
24
|
the petal core in the DB, if not yet there, make the assembly of the components,
|
|
25
25
|
and uploadas the test runs made at AVS.
|
|
26
26
|
|
|
27
|
-
##
|
|
27
|
+
## UploadTest.py
|
|
28
28
|
A GUI to upload the JSON files corresponding to a test and, also, to add
|
|
29
29
|
attachmetns.
|
|
30
30
|
|
|
31
|
-
##
|
|
31
|
+
## UploadMultipleTests.py
|
|
32
32
|
This will allow to select various test files, or even scan a whole directory to
|
|
33
33
|
find them, and assign comments, defects or attachments to each of the tests found.
|
|
34
34
|
|
|
35
|
-
##
|
|
35
|
+
## GetShipments.py
|
|
36
36
|
Find all shipments to be received at a given site and list them. It handles a
|
|
37
37
|
barcode reader that helps identifying the items actually received for the
|
|
38
38
|
reception. It will finally make the DB aware of the items receptioned.
|
|
39
39
|
|
|
40
|
-
##
|
|
40
|
+
## SendShipments.py
|
|
41
41
|
Create a new shipment. Allows to add items with the QR reader as well as from a
|
|
42
42
|
GUI dialog. One can add comments and attachments to the shipment.
|
|
43
43
|
|
|
44
|
-
##
|
|
44
|
+
## GroundVITests.py
|
|
45
45
|
Allows to upload and enter valueos, comments and defects for those items in the gounding
|
|
46
46
|
and visual instpections tests of the petal core.
|
|
47
47
|
|
|
48
|
-
##
|
|
48
|
+
## UploadModuleIV.py
|
|
49
49
|
The idea behind this is that we messure the IV on a Ring module and on only one of the to Half modules. The IV of the remaining half modules is derived from the other 2. Eventually the IV test can be uploaded to the DB.
|
|
50
50
|
|
|
51
51
|
## dashBoard.py
|
itkdb_gtk-0.0.16.dev1/itkdb_gtk/uploadIVfiles.py → itkdb_gtk-0.0.16.dev3/itkdb_gtk/UploadModuleIV.py
RENAMED
|
@@ -32,10 +32,10 @@ try:
|
|
|
32
32
|
import dbGtkUtils
|
|
33
33
|
import ITkDBlogin
|
|
34
34
|
import ITkDButils
|
|
35
|
-
import
|
|
35
|
+
import UploadTest
|
|
36
36
|
|
|
37
37
|
except ModuleNotFoundError:
|
|
38
|
-
from itkdb_gtk import dbGtkUtils, ITkDBlogin, ITkDButils,
|
|
38
|
+
from itkdb_gtk import dbGtkUtils, ITkDBlogin, ITkDButils, UploadTest
|
|
39
39
|
|
|
40
40
|
# Check if Gtk can be open
|
|
41
41
|
gtk_runs, gtk_args = Gtk.init_check()
|
|
@@ -335,8 +335,6 @@ class IVwindow(dbGtkUtils.ITkDBWindow):
|
|
|
335
335
|
btn.connect("clicked", self.upload_test)
|
|
336
336
|
grid.attach(btn, 2, 3, 1, 1)
|
|
337
337
|
|
|
338
|
-
|
|
339
|
-
|
|
340
338
|
self.mainBox.pack_start(grid, False, True, 0)
|
|
341
339
|
|
|
342
340
|
self.fig = mpl.figure.Figure()
|
|
@@ -369,7 +367,7 @@ class IVwindow(dbGtkUtils.ITkDBWindow):
|
|
|
369
367
|
except KeyError:
|
|
370
368
|
dbGtkUtils.complain("Cannot Upload to DB", "Data not yet ready.")
|
|
371
369
|
return
|
|
372
|
-
|
|
370
|
+
|
|
373
371
|
# Check if we are dealing with sensors or modules
|
|
374
372
|
is_module = "Module_SN" in mdata
|
|
375
373
|
|
|
@@ -389,7 +387,7 @@ class IVwindow(dbGtkUtils.ITkDBWindow):
|
|
|
389
387
|
# The data arrays
|
|
390
388
|
V = np.abs(mdata["curve"]["V"])
|
|
391
389
|
I = np.abs(mdata["curve"]["I"])
|
|
392
|
-
|
|
390
|
+
passed = True
|
|
393
391
|
|
|
394
392
|
# Find Current @ 500V
|
|
395
393
|
indx = np.where(V == 500)[0]
|
|
@@ -405,20 +403,26 @@ class IVwindow(dbGtkUtils.ITkDBWindow):
|
|
|
405
403
|
self.write_message("I stability = {:.6f} nA\n".format(IVariation))
|
|
406
404
|
|
|
407
405
|
# Search for Micro discharges
|
|
408
|
-
# Check for micro-discharge in non-normalized current,
|
|
406
|
+
# Check for micro-discharge in non-normalized current,
|
|
407
|
+
# removing duplicate Voltage entries (e.g. for stability measurements)
|
|
408
|
+
comments = []
|
|
409
|
+
defects = []
|
|
409
410
|
UniqueVs, UniqueIndices = np.unique(V, return_index=True)
|
|
410
411
|
MicroDischargeV = LocateMicroDischarge(I[UniqueIndices], UniqueVs)
|
|
411
412
|
if MicroDischargeV < np.max(V):
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
413
|
+
comments.append("Found micro discharge: {:.1f} V\n".format(MicroDischargeV))
|
|
414
|
+
self.write_message(comments[-1])
|
|
415
|
+
|
|
415
416
|
if MicroDischargeV < UpperV:
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
417
|
+
txt = "microdischarge happening before {:.1f}V.".format(UpperV)
|
|
418
|
+
defects.append({
|
|
419
|
+
"name": "MicroDischarge",
|
|
420
|
+
"description": txt,
|
|
421
|
+
"properties": {}
|
|
422
|
+
}
|
|
420
423
|
)
|
|
421
|
-
|
|
424
|
+
self.write_message("...{}. FAILED\n".format(txt))
|
|
425
|
+
passed = False
|
|
422
426
|
|
|
423
427
|
test["component"] = self.mod_SN["double"]
|
|
424
428
|
test["institution"] = mdata["Institute"]
|
|
@@ -426,7 +430,7 @@ class IVwindow(dbGtkUtils.ITkDBWindow):
|
|
|
426
430
|
test["date"] = ITkDButils.get_db_date(
|
|
427
431
|
"{} {}".format(mdata["Date"], mdata["Time"])
|
|
428
432
|
)
|
|
429
|
-
test["passed"] =
|
|
433
|
+
test["passed"] = passed
|
|
430
434
|
test["problems"] = False
|
|
431
435
|
test["properties"]["VBIAS_SMU"] = mdata["Vbias_SMU"]
|
|
432
436
|
test["properties"]["RSERIES"] = mdata["Rseries"]
|
|
@@ -447,6 +451,8 @@ class IVwindow(dbGtkUtils.ITkDBWindow):
|
|
|
447
451
|
test["results"]["CURRENT"] = -np.abs(I)
|
|
448
452
|
test["results"]["RMS_STABILITY"] = IVariation
|
|
449
453
|
test["results"]["SHUNT_VOLTAGE"] = np.zeros(V.shape)
|
|
454
|
+
test["defects"] = defects
|
|
455
|
+
test["comments"] = comments
|
|
450
456
|
|
|
451
457
|
# write attachment.
|
|
452
458
|
if is_module:
|
|
@@ -517,14 +523,10 @@ class IVwindow(dbGtkUtils.ITkDBWindow):
|
|
|
517
523
|
for i in range(ndata):
|
|
518
524
|
v = -abs(V[i])
|
|
519
525
|
iv = -abs(self.difference[i])
|
|
520
|
-
if ncol>2:
|
|
521
|
-
data_out.write(
|
|
522
|
-
"{:.2f}\t{:.2f}\t{:.2f}\n".format(v, iv, 0.0)
|
|
523
|
-
)
|
|
526
|
+
if ncol > 2:
|
|
527
|
+
data_out.write("{:.2f}\t{:.2f}\t{:.2f}\n".format(v, iv, 0.0))
|
|
524
528
|
else:
|
|
525
|
-
data_out.write(
|
|
526
|
-
"{:.2f}\t{:.2f}\n".format(v, iv)
|
|
527
|
-
)
|
|
529
|
+
data_out.write("{:.2f}\t{:.2f}\n".format(v, iv))
|
|
528
530
|
|
|
529
531
|
print(data_out.name)
|
|
530
532
|
data_out.close()
|
|
@@ -536,7 +538,7 @@ class IVwindow(dbGtkUtils.ITkDBWindow):
|
|
|
536
538
|
js_out.close()
|
|
537
539
|
|
|
538
540
|
attachment = ITkDButils.Attachment(data_out.name, "resultsFile", fnam)
|
|
539
|
-
uploadW =
|
|
541
|
+
uploadW = UploadTest.UploadTest(self.session, js_out.name, attachment)
|
|
540
542
|
uploadW.connect("destroy", remove_files, [data_out.name, js_out.name])
|
|
541
543
|
|
|
542
544
|
def on_refresh(self, *args):
|
|
@@ -625,6 +627,12 @@ class IVwindow(dbGtkUtils.ITkDBWindow):
|
|
|
625
627
|
return
|
|
626
628
|
|
|
627
629
|
# Check that it exists in the DB
|
|
630
|
+
if len(SN) != 14 or SN["0:4"] != "20US":
|
|
631
|
+
self.write_message("Invalid SN: {}\n".format(SN))
|
|
632
|
+
SN = dbGtkUtils.get_a_value(
|
|
633
|
+
"Invalid SN", "Give Ring or corresponding Half Module SN"
|
|
634
|
+
)
|
|
635
|
+
|
|
628
636
|
self.write_message("Reading data for module {}\n".format(SN))
|
|
629
637
|
md = self.find_module(SN)
|
|
630
638
|
if md is None:
|
|
@@ -681,7 +689,7 @@ class IVwindow(dbGtkUtils.ITkDBWindow):
|
|
|
681
689
|
self.mod_type["double"] = md["type"]["code"]
|
|
682
690
|
self.mdata["double"] = mdata
|
|
683
691
|
|
|
684
|
-
self.double_SN.set_text("{} - {}".format(
|
|
692
|
+
self.double_SN.set_text("{} - {}".format(halfM_SN, md["type"]["name"]))
|
|
685
693
|
self.show_curve(
|
|
686
694
|
133,
|
|
687
695
|
mdata["curve"]["V"],
|
|
@@ -790,7 +798,9 @@ class IVwindow(dbGtkUtils.ITkDBWindow):
|
|
|
790
798
|
return metadata
|
|
791
799
|
|
|
792
800
|
|
|
793
|
-
|
|
801
|
+
|
|
802
|
+
def main():
|
|
803
|
+
"""Main entryy."""
|
|
794
804
|
import sys
|
|
795
805
|
|
|
796
806
|
# DB login
|
|
@@ -818,3 +828,6 @@ if __name__ == "__main__":
|
|
|
818
828
|
dlg.die()
|
|
819
829
|
print("Bye !!")
|
|
820
830
|
sys.exit()
|
|
831
|
+
|
|
832
|
+
if __name__ == "__main__":
|
|
833
|
+
main()
|
|
@@ -14,13 +14,13 @@ try:
|
|
|
14
14
|
from ShowComments import ShowComments
|
|
15
15
|
from ShowAttachments import ShowAttachments
|
|
16
16
|
from ShowDefects import ShowDefects
|
|
17
|
-
from
|
|
17
|
+
from UploadTest import create_json_data_editor
|
|
18
18
|
except ModuleNotFoundError:
|
|
19
19
|
from itkdb_gtk import dbGtkUtils, ITkDBlogin, ITkDButils
|
|
20
20
|
from itkdb_gtk.ShowComments import ShowComments
|
|
21
21
|
from itkdb_gtk.ShowAttachments import ShowAttachments
|
|
22
22
|
from itkdb_gtk.ShowDefects import ShowDefects
|
|
23
|
-
from itkdb_gtk.
|
|
23
|
+
from itkdb_gtk.UploadTest import create_json_data_editor
|
|
24
24
|
|
|
25
25
|
import gi
|
|
26
26
|
gi.require_version("Gtk", "3.0")
|
|
File without changes
|
itkdb_gtk-0.0.16.dev1/itkdb_gtk/uploadTest.py → itkdb_gtk-0.0.16.dev3/itkdb_gtk/UploadTest.py
RENAMED
|
File without changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
__version__ = "0.0.16.
|
|
1
|
+
__version__ = "0.0.16.dev3"
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
def dash_board():
|
|
@@ -9,7 +9,7 @@ def dash_board():
|
|
|
9
9
|
|
|
10
10
|
def getShipments():
|
|
11
11
|
"""getShipments."""
|
|
12
|
-
from .
|
|
12
|
+
from .GetShipments import main
|
|
13
13
|
main()
|
|
14
14
|
|
|
15
15
|
|
|
@@ -21,28 +21,27 @@ def glueWeight():
|
|
|
21
21
|
|
|
22
22
|
def groundVITests():
|
|
23
23
|
"""GND/VI tests."""
|
|
24
|
-
from .
|
|
24
|
+
from .GroundVITests import main
|
|
25
25
|
main()
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
def sendShipments():
|
|
29
29
|
"""Send items."""
|
|
30
|
-
from .
|
|
30
|
+
from .SendShipments import main
|
|
31
31
|
main()
|
|
32
32
|
|
|
33
|
-
|
|
34
33
|
def uploadTest():
|
|
35
|
-
"""Upload tests."""
|
|
36
|
-
from .
|
|
34
|
+
"""Upload a single tests."""
|
|
35
|
+
from .UploadTest import main
|
|
37
36
|
main()
|
|
38
37
|
|
|
39
38
|
|
|
40
39
|
def uploadMultipleTests():
|
|
41
40
|
"""Upload multiple tests."""
|
|
42
|
-
from .
|
|
41
|
+
from .UploadMultipleTests import main
|
|
43
42
|
main()
|
|
44
43
|
|
|
45
|
-
def
|
|
44
|
+
def uploadModuleIV():
|
|
46
45
|
"""Upload IV files of single and double modules"""
|
|
47
|
-
from .
|
|
46
|
+
from .UploadModuleIV import main
|
|
48
47
|
main()
|
|
@@ -4,17 +4,23 @@ import sys
|
|
|
4
4
|
|
|
5
5
|
try:
|
|
6
6
|
import dbGtkUtils
|
|
7
|
-
import
|
|
8
|
-
import
|
|
7
|
+
import GetShipments
|
|
8
|
+
import GroundVITests
|
|
9
9
|
import ITkDBlogin
|
|
10
|
-
import
|
|
11
|
-
import
|
|
10
|
+
import SendShipments
|
|
11
|
+
import UploadMultipleTests
|
|
12
12
|
import GlueWeight
|
|
13
|
-
import
|
|
13
|
+
import UploadModuleIV
|
|
14
14
|
|
|
15
15
|
except Exception:
|
|
16
|
-
from itkdb_gtk import dbGtkUtils
|
|
17
|
-
from itkdb_gtk import
|
|
16
|
+
from itkdb_gtk import dbGtkUtils
|
|
17
|
+
from itkdb_gtk import GetShipments
|
|
18
|
+
from itkdb_gtk import GroundVITests
|
|
19
|
+
from itkdb_gtk import ITkDBlogin
|
|
20
|
+
from itkdb_gtk import SendShipments
|
|
21
|
+
from itkdb_gtk import UploadMultipleTests
|
|
22
|
+
from itkdb_gtk import GlueWeight
|
|
23
|
+
from itkdb_gtk import UploadModuleIV
|
|
18
24
|
|
|
19
25
|
import gi
|
|
20
26
|
|
|
@@ -102,7 +108,7 @@ class DashWindow(dbGtkUtils.ITkDBWindow):
|
|
|
102
108
|
return
|
|
103
109
|
|
|
104
110
|
self.mask |= bt
|
|
105
|
-
W =
|
|
111
|
+
W = UploadMultipleTests.UploadMultipleTests(self.session)
|
|
106
112
|
W.connect("destroy", self.app_closed, bitn)
|
|
107
113
|
|
|
108
114
|
def create_shipment(self, *args):
|
|
@@ -113,7 +119,7 @@ class DashWindow(dbGtkUtils.ITkDBWindow):
|
|
|
113
119
|
return
|
|
114
120
|
|
|
115
121
|
self.mask |= bt
|
|
116
|
-
W =
|
|
122
|
+
W = SendShipments.SendShipments(self.session)
|
|
117
123
|
W.connect("destroy", self.app_closed, bitn)
|
|
118
124
|
|
|
119
125
|
def receive_shipment(self, *args):
|
|
@@ -124,7 +130,7 @@ class DashWindow(dbGtkUtils.ITkDBWindow):
|
|
|
124
130
|
return
|
|
125
131
|
|
|
126
132
|
self.mask |= bt
|
|
127
|
-
W =
|
|
133
|
+
W = GetShipments.ReceiveShipments(self.session)
|
|
128
134
|
W.connect("destroy", self.app_closed, bitn)
|
|
129
135
|
|
|
130
136
|
def petal_gnd(self, *args):
|
|
@@ -135,7 +141,7 @@ class DashWindow(dbGtkUtils.ITkDBWindow):
|
|
|
135
141
|
return
|
|
136
142
|
|
|
137
143
|
self.mask |= bt
|
|
138
|
-
W =
|
|
144
|
+
W = GroundVITests.GroundingTest(self.session)
|
|
139
145
|
W.connect("destroy", self.app_closed, bitn)
|
|
140
146
|
|
|
141
147
|
def glue_weight(self, *args):
|
|
@@ -157,14 +163,14 @@ class DashWindow(dbGtkUtils.ITkDBWindow):
|
|
|
157
163
|
return
|
|
158
164
|
|
|
159
165
|
self.mask |= bt
|
|
160
|
-
W =
|
|
166
|
+
W = UploadModuleIV.IVwindow(self.session)
|
|
161
167
|
W.connect("destroy", self.app_closed, bitn)
|
|
162
168
|
|
|
163
169
|
def app_closed(self, *args):
|
|
164
170
|
"""Application window closed. Clear mask."""
|
|
165
171
|
bt = 1 << args[1]
|
|
166
172
|
self.mask &= ~bt
|
|
167
|
-
print(bt, self.mask)
|
|
173
|
+
# print(bt, self.mask)
|
|
168
174
|
|
|
169
175
|
|
|
170
176
|
def main():
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: itkdb_gtk
|
|
3
|
-
Version: 0.0.16.
|
|
3
|
+
Version: 0.0.16.dev3
|
|
4
4
|
Summary: A collection of Gtk based GUI to access ITkDB.
|
|
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
|
|
@@ -41,28 +41,28 @@ Reads the AVS Production Sheet and FAT reports. With this information it creates
|
|
|
41
41
|
the petal core in the DB, if not yet there, make the assembly of the components,
|
|
42
42
|
and uploadas the test runs made at AVS.
|
|
43
43
|
|
|
44
|
-
##
|
|
44
|
+
## UploadTest.py
|
|
45
45
|
A GUI to upload the JSON files corresponding to a test and, also, to add
|
|
46
46
|
attachmetns.
|
|
47
47
|
|
|
48
|
-
##
|
|
48
|
+
## UploadMultipleTests.py
|
|
49
49
|
This will allow to select various test files, or even scan a whole directory to
|
|
50
50
|
find them, and assign comments, defects or attachments to each of the tests found.
|
|
51
51
|
|
|
52
|
-
##
|
|
52
|
+
## GetShipments.py
|
|
53
53
|
Find all shipments to be received at a given site and list them. It handles a
|
|
54
54
|
barcode reader that helps identifying the items actually received for the
|
|
55
55
|
reception. It will finally make the DB aware of the items receptioned.
|
|
56
56
|
|
|
57
|
-
##
|
|
57
|
+
## SendShipments.py
|
|
58
58
|
Create a new shipment. Allows to add items with the QR reader as well as from a
|
|
59
59
|
GUI dialog. One can add comments and attachments to the shipment.
|
|
60
60
|
|
|
61
|
-
##
|
|
61
|
+
## GroundVITests.py
|
|
62
62
|
Allows to upload and enter valueos, comments and defects for those items in the gounding
|
|
63
63
|
and visual instpections tests of the petal core.
|
|
64
64
|
|
|
65
|
-
##
|
|
65
|
+
## UploadModuleIV.py
|
|
66
66
|
The idea behind this is that we messure the IV on a Ring module and on only one of the to Half modules. The IV of the remaining half modules is derived from the other 2. Eventually the IV test can be uploaded to the DB.
|
|
67
67
|
|
|
68
68
|
## dashBoard.py
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
README.md
|
|
2
2
|
pyproject.toml
|
|
3
|
+
itkdb_gtk/GetShipments.py
|
|
3
4
|
itkdb_gtk/GlueWeight.py
|
|
5
|
+
itkdb_gtk/GroundVITests.py
|
|
4
6
|
itkdb_gtk/ITkDB.desktop
|
|
5
7
|
itkdb_gtk/ITkDB.svg
|
|
6
8
|
itkdb_gtk/ITkDBlogin.py
|
|
7
9
|
itkdb_gtk/ITkDButils.py
|
|
10
|
+
itkdb_gtk/SendShipments.py
|
|
8
11
|
itkdb_gtk/ShowAttachments.py
|
|
9
12
|
itkdb_gtk/ShowComments.py
|
|
10
13
|
itkdb_gtk/ShowDefects.py
|
|
14
|
+
itkdb_gtk/UploadModuleIV.py
|
|
15
|
+
itkdb_gtk/UploadMultipleTests.py
|
|
16
|
+
itkdb_gtk/UploadPetalInformation.py
|
|
17
|
+
itkdb_gtk/UploadTest.py
|
|
11
18
|
itkdb_gtk/__init__.py
|
|
12
19
|
itkdb_gtk/dashBoard.py
|
|
13
20
|
itkdb_gtk/dbGtkUtils.py
|
|
14
|
-
itkdb_gtk/getShipments.py
|
|
15
|
-
itkdb_gtk/groundVITests.py
|
|
16
21
|
itkdb_gtk/readAVSdata.py
|
|
17
22
|
itkdb_gtk/readGoogleSheet.py
|
|
18
|
-
itkdb_gtk/sendShipments.py
|
|
19
23
|
itkdb_gtk/untrash_component.py
|
|
20
|
-
itkdb_gtk/uploadIVfiles.py
|
|
21
|
-
itkdb_gtk/uploadMultipleTests.py
|
|
22
|
-
itkdb_gtk/uploadPetalInformation.py
|
|
23
|
-
itkdb_gtk/uploadTest.py
|
|
24
24
|
itkdb_gtk.egg-info/PKG-INFO
|
|
25
25
|
itkdb_gtk.egg-info/SOURCES.txt
|
|
26
26
|
itkdb_gtk.egg-info/dependency_links.txt
|
|
@@ -4,6 +4,6 @@ glueWeight = itkdb_gtk:glueWeight
|
|
|
4
4
|
groundVITests = itkdb_gtk:groundVITests
|
|
5
5
|
itkdb_dashBoard = itkdb_gtk:dash_board
|
|
6
6
|
sendShipments = itkdb_gtk:sendShipments
|
|
7
|
-
|
|
7
|
+
uploadModuleIV = itkdb_gtk:uploadModuleIV
|
|
8
8
|
uploadMultipleTests = itkdb_gtk:uploadMultipleTests
|
|
9
9
|
uploadTest = itkdb_gtk:uploadTest
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "itkdb_gtk"
|
|
7
|
-
version = "0.0.16.
|
|
7
|
+
version = "0.0.16.dev3"
|
|
8
8
|
authors = [
|
|
9
9
|
{ name="Carlos Lacasta", email="carlos.lacasta@cern.ch" },
|
|
10
10
|
]
|
|
@@ -31,7 +31,7 @@ groundVITests = "itkdb_gtk:groundVITests"
|
|
|
31
31
|
sendShipments = "itkdb_gtk:sendShipments"
|
|
32
32
|
uploadTest = "itkdb_gtk:uploadTest"
|
|
33
33
|
uploadMultipleTests = "itkdb_gtk:uploadMultipleTests"
|
|
34
|
-
|
|
34
|
+
uploadModuleIV = "itkdb_gtk:uploadModuleIV"
|
|
35
35
|
|
|
36
36
|
[tool.setuptools]
|
|
37
37
|
include-package-data = true
|
/itkdb_gtk-0.0.16.dev1/itkdb_gtk/getShipments.py → /itkdb_gtk-0.0.16.dev3/itkdb_gtk/GetShipments.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|