itkdb-gtk 0.10.10.dev6__py3-none-any.whl → 0.10.10.dev7__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 itkdb-gtk might be problematic. Click here for more details.

@@ -41,6 +41,7 @@ class ModuleVisualInspection(dbGtkUtils.ITkDBWindow):
41
41
  self.global_image = None
42
42
  self.global_link = None
43
43
  self.data = None
44
+ self.currentStage = None
44
45
  self.attachments = []
45
46
  self.comments = []
46
47
  self.defects = []
@@ -54,7 +55,7 @@ class ModuleVisualInspection(dbGtkUtils.ITkDBWindow):
54
55
  button.connect("clicked", self.upload_test)
55
56
  self.hb.pack_end(button)
56
57
 
57
- grid = Gtk.Grid(column_spacing=5, row_spacing=5)
58
+ grid = Gtk.Grid(column_spacing=10, row_spacing=5)
58
59
  self.mainBox.pack_start(grid, False, False, 5)
59
60
 
60
61
  irow = 0
@@ -67,6 +68,11 @@ class ModuleVisualInspection(dbGtkUtils.ITkDBWindow):
67
68
  lbl.set_xalign(0)
68
69
  grid.attach(lbl, 0, irow, 1, 1)
69
70
  grid.attach(receiver, 1, irow, 1, 1)
71
+
72
+ self.obj_type = None
73
+ self.obj_type_label = Gtk.Label()
74
+ self.obj_type_label.set_xalign(0)
75
+ grid.attach(self.obj_type_label, 2, irow, 1, 1)
70
76
 
71
77
  irow += 1
72
78
  lbl = Gtk.Label(label="Serial Number")
@@ -78,9 +84,15 @@ class ModuleVisualInspection(dbGtkUtils.ITkDBWindow):
78
84
  self.SN.widget.set_tooltip_text("Enter SN of module.")
79
85
  grid.attach(self.SN.widget, 1, irow, 1, 1)
80
86
 
81
- self.obj_type = None
82
- self.obj_type_label = Gtk.Label()
83
- grid.attach(self.obj_type_label, 2, irow, 1, 1)
87
+
88
+ self.passed = Gtk.Switch()
89
+ self.passed.props.halign = Gtk.Align.START
90
+ self.passed.set_active(True)
91
+ lbl = Gtk.Label(label="Passed")
92
+ lbl.set_xalign(0)
93
+ grid.attach(lbl, 2, irow, 1, 1)
94
+ grid.attach(self.passed, 3, irow, 1, 1)
95
+
84
96
 
85
97
  irow += 1
86
98
  lbl = Gtk.Label(label="Date")
@@ -92,24 +104,26 @@ class ModuleVisualInspection(dbGtkUtils.ITkDBWindow):
92
104
  self.date.entry.set_text(ITkDButils.get_db_date())
93
105
  self.date.connect("text_changed", self.new_date)
94
106
 
95
- irow +=1
96
- self.passed = Gtk.Switch()
97
- self.passed.props.halign = Gtk.Align.START
98
- self.passed.set_active(True)
99
- lbl = Gtk.Label(label="Passed")
100
- lbl.set_xalign(0)
101
- grid.attach(lbl, 0, irow, 1, 1)
102
- grid.attach(self.passed, 1, irow, 1, 1)
103
-
104
- irow +=1
105
107
  self.problems = Gtk.Switch()
106
108
  self.problems.props.halign = Gtk.Align.START
107
109
  self.problems.set_active(False)
108
110
  lbl = Gtk.Label(label="Problems")
109
111
  lbl.set_xalign(0)
112
+ grid.attach(lbl, 2, irow, 1, 1)
113
+ grid.attach(self.problems, 3, irow, 1, 1)
114
+
115
+ irow +=1
116
+ self.reception = Gtk.Switch()
117
+ self.reception.props.halign = Gtk.Align.START
118
+ self.reception.set_active(False)
119
+ lbl = Gtk.Label(label="Reception VI")
120
+ lbl.set_xalign(0)
110
121
  grid.attach(lbl, 0, irow, 1, 1)
111
- grid.attach(self.problems, 1, irow, 1, 1)
122
+ grid.attach(self.reception, 1, irow, 1, 1)
112
123
 
124
+ irow +=1
125
+ lbl = Gtk.Label()
126
+ grid.attach(lbl, 0, irow, 1, 1)
113
127
 
114
128
  # The "Add attachment" button.
115
129
  box = Gtk.Box(orientation=Gtk.Orientation.HORIZONTAL)
@@ -155,16 +169,23 @@ class ModuleVisualInspection(dbGtkUtils.ITkDBWindow):
155
169
 
156
170
  SN = module["serialNumber"]
157
171
  if module_type.match(SN):
158
- self.obj_type_label.set_text("Module")
172
+ self.obj_type_label.set_markup("<b><big>Module</big></b>")
159
173
  self.obj_type = "MODULE"
160
174
  elif sensor_type.match(SN):
161
- self.obj_type_label.set_text("Sensor")
175
+ self.obj_type_label.set_text("<b><big>Sensor</big></b>")
162
176
  self.obj_type = "SENSOR"
163
177
  else:
164
178
  self.obj_type_label.set_text("Invalid SN")
165
179
  self.obj_type = None
166
180
  dbGtkUtils.complain("Invalid SN", "Not a module nor a sensor.")
167
181
 
182
+ self.reception.set_sensitive(True)
183
+ self.reception.set_active(False)
184
+ self.currentStage = module["currentStage"]["code"]
185
+ if self.obj_type == "MODULE" and self.currentStage == "AT_LOADING_SITE":
186
+ self.reception.set_active(True)
187
+ self.reception.set_sensitive(False)
188
+
168
189
  args[0].set_text(SN)
169
190
 
170
191
 
@@ -222,10 +243,16 @@ class ModuleVisualInspection(dbGtkUtils.ITkDBWindow):
222
243
  "runNumber": "1",
223
244
  "date": self.date.get_text()
224
245
  }
246
+
225
247
  test_type = "VISUAL_INSPECTION"
226
248
  if self.obj_type == "SENSOR":
227
249
  test_type = "VIS_INSP_RES_MOD_V2"
228
-
250
+
251
+ else:
252
+ if self.reception.get_active():
253
+ test_type = "VISUAL_INSPECTION_RECEPTION"
254
+
255
+
229
256
  self.data = ITkDButils.get_test_skeleton(self.session,
230
257
  self.obj_type,
231
258
  test_type,
itkdb_gtk/__init__.py CHANGED
@@ -1,6 +1,6 @@
1
1
  """ itkdb-gtk python module
2
2
  """
3
- __version__ = "0.10.10.dev6"
3
+ __version__ = "0.10.10.dev7"
4
4
 
5
5
 
6
6
  def dash_board():
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: itkdb_gtk
3
- Version: 0.10.10.dev6
3
+ Version: 0.10.10.dev7
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
@@ -14,15 +14,15 @@ itkdb_gtk/ShowDefects.py,sha256=aVAHeaE5IztmAPEuHwhi06KWo_pi9xX2J1fTLhKyAPI,3530
14
14
  itkdb_gtk/UploadModuleIV.py,sha256=sqh52bSxANBwlmVWZlDqFXpqRGf0rV0QsjJWC-tY_qI,17792
15
15
  itkdb_gtk/UploadMultipleTests.py,sha256=8LgbIE7g6zdx4zAqM_Y3DungVnxyStiexhOvjruc4H0,24190
16
16
  itkdb_gtk/UploadTest.py,sha256=HVAdMRpicxG5Qr5Hj9LL5tVsSz1tTGaGbeolz-BaFrE,16717
17
- itkdb_gtk/VisualInspection.py,sha256=jxeNSEM0fAW2toLJjIUa2h3UqY19jHVV74dbBF0UKoY,8907
17
+ itkdb_gtk/VisualInspection.py,sha256=-67okeTkCps40feNCYC8HXLhy7mTbCzo-8RnelYjCvU,9818
18
18
  itkdb_gtk/WireBondGui.py,sha256=8kA5S6MCl_DUeszdBn9z9kR3kRHe0sI0wRU_akBJqDo,38711
19
- itkdb_gtk/__init__.py,sha256=vuPPJz2gOqCwUy2lsY0bwOKzJ9c8_0SXCtDkgRFjUac,1269
19
+ itkdb_gtk/__init__.py,sha256=3ZVZmL5k0_xjnmfV45Ly7QpkUOXPZDgbC9m_VMFfO1g,1269
20
20
  itkdb_gtk/dashBoard.py,sha256=ZGeG0su0C7LGzXrcBu8KKfzeneuqkVLieF-6s6yGCgc,10563
21
21
  itkdb_gtk/dbGtkUtils.py,sha256=THW-IT5UJB1YluvUVIfpy6oIY2faSHChNKGTpY5qzag,30480
22
22
  itkdb_gtk/readGoogleSheet.py,sha256=Lzm_oPWwDqZZzKoBUgsp277F9-wCfr_BA0X4VD2Eolo,2673
23
23
  itkdb_gtk/untrash_component.py,sha256=VrN46-f-kF7voOxtoh7OL-bZSWAaIFb7-Xbx6_WT7K8,757
24
- itkdb_gtk-0.10.10.dev6.dist-info/METADATA,sha256=dYG6wCAoE9_jSPfHpwb5KYVZzP_4noMR_A7YrTEEaCU,3156
25
- itkdb_gtk-0.10.10.dev6.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
26
- itkdb_gtk-0.10.10.dev6.dist-info/entry_points.txt,sha256=51wi4BRW1vYuLNySWC6bsmQPo7XPI7cvPFAaBD49Ib0,489
27
- itkdb_gtk-0.10.10.dev6.dist-info/top_level.txt,sha256=KVRrH4OS8ovzNR9bvADE0ABn5bNpSk987tuH0jCfkbU,10
28
- itkdb_gtk-0.10.10.dev6.dist-info/RECORD,,
24
+ itkdb_gtk-0.10.10.dev7.dist-info/METADATA,sha256=dOOxOmKsX2rKPXOeSacvE-lOfH7mb8AIjX42azVzNqQ,3156
25
+ itkdb_gtk-0.10.10.dev7.dist-info/WHEEL,sha256=OVMc5UfuAQiSplgO0_WdW7vXVGAt9Hdd6qtN4HotdyA,91
26
+ itkdb_gtk-0.10.10.dev7.dist-info/entry_points.txt,sha256=51wi4BRW1vYuLNySWC6bsmQPo7XPI7cvPFAaBD49Ib0,489
27
+ itkdb_gtk-0.10.10.dev7.dist-info/top_level.txt,sha256=KVRrH4OS8ovzNR9bvADE0ABn5bNpSk987tuH0jCfkbU,10
28
+ itkdb_gtk-0.10.10.dev7.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.1.0)
2
+ Generator: setuptools (75.2.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5