itkdb-gtk 0.0.18__tar.gz → 0.9.1.dev1__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.

Files changed (36) hide show
  1. {itkdb_gtk-0.0.18 → itkdb_gtk-0.9.1.dev1}/PKG-INFO +2 -2
  2. {itkdb_gtk-0.0.18 → itkdb_gtk-0.9.1.dev1}/README.md +1 -1
  3. itkdb_gtk-0.0.18/itkdb_gtk/SendShipments.py → itkdb_gtk-0.9.1.dev1/itkdb_gtk/CreateShipments.py +2 -3
  4. {itkdb_gtk-0.0.18 → itkdb_gtk-0.9.1.dev1}/itkdb_gtk/GetShipments.py +2 -3
  5. {itkdb_gtk-0.0.18 → itkdb_gtk-0.9.1.dev1}/itkdb_gtk/GlueWeight.py +7 -16
  6. {itkdb_gtk-0.0.18 → itkdb_gtk-0.9.1.dev1}/itkdb_gtk/ITkDB.svg +11 -3
  7. {itkdb_gtk-0.0.18 → itkdb_gtk-0.9.1.dev1}/itkdb_gtk/ITkDBlogin.py +0 -1
  8. {itkdb_gtk-0.0.18 → itkdb_gtk-0.9.1.dev1}/itkdb_gtk/ITkDButils.py +5 -17
  9. itkdb_gtk-0.0.18/itkdb_gtk/GroundVITests.py → itkdb_gtk-0.9.1.dev1/itkdb_gtk/PetalReceptionTests.py +5 -5
  10. itkdb_gtk-0.9.1.dev1/itkdb_gtk/SensorUtils.py +490 -0
  11. itkdb_gtk-0.9.1.dev1/itkdb_gtk/UploadModuleIV.py +566 -0
  12. {itkdb_gtk-0.0.18 → itkdb_gtk-0.9.1.dev1}/itkdb_gtk/UploadMultipleTests.py +4 -8
  13. {itkdb_gtk-0.0.18 → itkdb_gtk-0.9.1.dev1}/itkdb_gtk/UploadPetalInformation.py +8 -9
  14. {itkdb_gtk-0.0.18 → itkdb_gtk-0.9.1.dev1}/itkdb_gtk/UploadTest.py +6 -7
  15. {itkdb_gtk-0.0.18 → itkdb_gtk-0.9.1.dev1}/itkdb_gtk/WireBondGui.py +2 -1
  16. {itkdb_gtk-0.0.18 → itkdb_gtk-0.9.1.dev1}/itkdb_gtk/__init__.py +12 -5
  17. {itkdb_gtk-0.0.18 → itkdb_gtk-0.9.1.dev1}/itkdb_gtk/dashBoard.py +15 -14
  18. {itkdb_gtk-0.0.18 → itkdb_gtk-0.9.1.dev1}/itkdb_gtk/dbGtkUtils.py +27 -20
  19. {itkdb_gtk-0.0.18 → itkdb_gtk-0.9.1.dev1}/itkdb_gtk/readAVSdata.py +0 -7
  20. {itkdb_gtk-0.0.18 → itkdb_gtk-0.9.1.dev1}/itkdb_gtk/readGoogleSheet.py +0 -1
  21. {itkdb_gtk-0.0.18 → itkdb_gtk-0.9.1.dev1}/itkdb_gtk/untrash_component.py +1 -1
  22. {itkdb_gtk-0.0.18 → itkdb_gtk-0.9.1.dev1}/itkdb_gtk.egg-info/PKG-INFO +2 -2
  23. {itkdb_gtk-0.0.18 → itkdb_gtk-0.9.1.dev1}/itkdb_gtk.egg-info/SOURCES.txt +4 -2
  24. {itkdb_gtk-0.0.18 → itkdb_gtk-0.9.1.dev1}/itkdb_gtk.egg-info/entry_points.txt +3 -2
  25. {itkdb_gtk-0.0.18 → itkdb_gtk-0.9.1.dev1}/pyproject.toml +4 -3
  26. itkdb_gtk-0.9.1.dev1/test/testAnimated.py +33 -0
  27. itkdb_gtk-0.0.18/itkdb_gtk/UploadModuleIV.py +0 -857
  28. {itkdb_gtk-0.0.18 → itkdb_gtk-0.9.1.dev1}/itkdb_gtk/ITkDB.desktop +0 -0
  29. {itkdb_gtk-0.0.18 → itkdb_gtk-0.9.1.dev1}/itkdb_gtk/ShowAttachments.py +0 -0
  30. {itkdb_gtk-0.0.18 → itkdb_gtk-0.9.1.dev1}/itkdb_gtk/ShowComments.py +0 -0
  31. {itkdb_gtk-0.0.18 → itkdb_gtk-0.9.1.dev1}/itkdb_gtk/ShowDefects.py +0 -0
  32. {itkdb_gtk-0.0.18 → itkdb_gtk-0.9.1.dev1}/itkdb_gtk.egg-info/dependency_links.txt +0 -0
  33. {itkdb_gtk-0.0.18 → itkdb_gtk-0.9.1.dev1}/itkdb_gtk.egg-info/requires.txt +0 -0
  34. {itkdb_gtk-0.0.18 → itkdb_gtk-0.9.1.dev1}/itkdb_gtk.egg-info/top_level.txt +0 -0
  35. {itkdb_gtk-0.0.18 → itkdb_gtk-0.9.1.dev1}/setup.cfg +0 -0
  36. {itkdb_gtk-0.0.18 → itkdb_gtk-0.9.1.dev1}/test/test_holes.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: itkdb_gtk
3
- Version: 0.0.18
3
+ Version: 0.9.1.dev1
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
@@ -57,7 +57,7 @@ Find all shipments to be received at a given site and list them. It handles a
57
57
  barcode reader that helps identifying the items actually received for the
58
58
  reception. It will finally make the DB aware of the items receptioned.
59
59
 
60
- ## SendShipments.py
60
+ ## CreateShipments.py
61
61
  Create a new shipment. Allows to add items with the QR reader as well as from a
62
62
  GUI dialog. One can add comments and attachments to the shipment.
63
63
 
@@ -37,7 +37,7 @@ 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
- ## SendShipments.py
40
+ ## CreateShipments.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
 
@@ -25,14 +25,13 @@ from gi.repository import Gtk, Gio, GLib
25
25
  gtk_runs, gtk_args = Gtk.init_check()
26
26
 
27
27
 
28
- class SendShipments(dbGtkUtils.ITkDBWindow):
28
+ class CreateShipments(dbGtkUtils.ITkDBWindow):
29
29
  """Create a shipment from input."""
30
30
 
31
31
  def __init__(self, session):
32
32
  """Initialization.
33
33
 
34
34
  Args:
35
- ----
36
35
  session: ITkDB session.
37
36
 
38
37
  """
@@ -373,7 +372,7 @@ def main():
373
372
  sys.exit()
374
373
 
375
374
  client.user_gui = dlg
376
- IS = SendShipments(client)
375
+ IS = CreateShipments(client)
377
376
  IS.set_accept_focus(True)
378
377
  IS.present()
379
378
  IS.connect("destroy", Gtk.main_quit)
@@ -25,11 +25,10 @@ gtk_runs, gtk_args = Gtk.init_check()
25
25
  class ReceiveShipments(dbGtkUtils.ITkDBWindow):
26
26
  """Find shipments related to given recipient."""
27
27
 
28
- def __init__(self, session, recipient="IFIC"):
28
+ def __init__(self, session, recipient="IFIC", help=None):
29
29
  """Initialization.
30
30
 
31
31
  Args:
32
- ----
33
32
  session: ITkDB session.
34
33
  recipient: default recipient
35
34
 
@@ -45,7 +44,7 @@ class ReceiveShipments(dbGtkUtils.ITkDBWindow):
45
44
  if gtk_runs:
46
45
  super().__init__(session=session, title="Upload AVS Data",
47
46
  show_search="Cliick to search shipments",
48
- gtk_runs=gtk_runs)
47
+ gtk_runs=gtk_runs, help=help)
49
48
 
50
49
  self.init_window()
51
50
 
@@ -33,12 +33,10 @@ def find_module(ifile, module_sn="MODULE_SN"):
33
33
  """Find the starting line of a module.
34
34
 
35
35
  Args:
36
- ----
37
36
  ifile: the input file object.
38
37
  module_sn: tag t ostar t a new module.
39
38
 
40
- Return:
41
- ------
39
+ Returns:
42
40
  the SN of the module.
43
41
 
44
42
  """
@@ -67,12 +65,10 @@ def remove_defaul_keys(data, default_value=-9999):
67
65
  """Remove keys with deafault value.
68
66
 
69
67
  Args:
70
- ----
71
68
  data: Input dictionary
72
69
  default_value: Defaultvalue. Defaults to -9999.
73
70
 
74
- Returns
75
- -------
71
+ Returns:
76
72
  data: trimmed dictionary
77
73
 
78
74
  """
@@ -90,11 +86,10 @@ def remove_defaul_keys(data, default_value=-9999):
90
86
  class GlueWeight(Gtk.Window):
91
87
  """Upluead Glue Weight test."""
92
88
 
93
- def __init__(self, session, ifile=None):
89
+ def __init__(self, session, ifile=None, help=None):
94
90
  """Initialization.
95
-
91
+
96
92
  Args:
97
- ----
98
93
  session: ITkDB session_
99
94
  ifile (optional): Input file. Defaults to None.
100
95
 
@@ -118,7 +113,7 @@ class GlueWeight(Gtk.Window):
118
113
  session, "MODULE", "GLUE_WEIGHT", defaults)
119
114
 
120
115
  if gtk_runs:
121
- super().__init__(title="Upload AVS Data")
116
+ super().__init__(title="Upload Glue Weight", help=help)
122
117
  self.init_window()
123
118
 
124
119
  def init_window(self):
@@ -205,13 +200,11 @@ class GlueWeight(Gtk.Window):
205
200
  """Create the dialog for a DB test and add it to the notebook.
206
201
 
207
202
  Args:
208
- ----
209
203
  test_json: The JSon-like dict with the values
210
204
  test_name: The name of the test for internal indexing
211
205
  label: The label for the Notebook
212
206
 
213
- Return:
214
- ------
207
+ Returns:
215
208
  The box containing the data.
216
209
 
217
210
  """
@@ -271,12 +264,10 @@ class GlueWeight(Gtk.Window):
271
264
  """Parse a data file.
272
265
 
273
266
  Args:
274
- ----
275
267
  ifile (): A file object.
276
268
  module_sep: tag to idenntify a new module.
277
269
 
278
- Returns
279
- -------
270
+ Returns:
280
271
  a list of tests (json)
281
272
 
282
273
  """
@@ -11,7 +11,10 @@
11
11
  sodipodi:docname="ITkDB.svg"
12
12
  width="75"
13
13
  height="60"
14
- inkscape:version="1.2 (dc2aeda, 2022-05-15)"
14
+ inkscape:version="1.3.2 (091e20e, 2023-11-25)"
15
+ inkscape:export-filename="ITkDB.png"
16
+ inkscape:export-xdpi="96"
17
+ inkscape:export-ydpi="96"
15
18
  xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
16
19
  xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
17
20
  xmlns="http://www.w3.org/2000/svg"
@@ -40,8 +43,13 @@
40
43
  showgrid="false"
41
44
  inkscape:zoom="10.143094"
42
45
  inkscape:cx="38.794869"
43
- inkscape:cy="18.879841"
44
- inkscape:current-layer="g10" />
46
+ inkscape:cy="18.929135"
47
+ inkscape:current-layer="g9542"
48
+ inkscape:window-width="1368"
49
+ inkscape:window-height="1087"
50
+ inkscape:window-x="0"
51
+ inkscape:window-y="44"
52
+ inkscape:window-maximized="0" />
45
53
  <g
46
54
  id="g142"
47
55
  transform="translate(14.828749,-1.5740459)">
@@ -254,7 +254,6 @@ class ITkDBlogin(Gtk.Dialog):
254
254
  """Opens an error dialog.
255
255
 
256
256
  Args:
257
- ----
258
257
  main_title: Main text in window
259
258
  second_text: Second text
260
259
 
@@ -50,7 +50,6 @@ def get_db_date(timestamp=None):
50
50
  """Convert a date string into the expected DB format.
51
51
 
52
52
  Args:
53
- ----
54
53
  timestamp: A date in string format
55
54
 
56
55
  """
@@ -81,13 +80,11 @@ def registerPetalCore(client, SN, alias, HC_id=None):
81
80
  """Register a Petal Core in the DB.
82
81
 
83
82
  Args:
84
- ----
85
83
  SN: Serial Number
86
84
  alias: The alias of the Petal
87
85
  HC_id: Comma separated list of HC identifiers.
88
86
 
89
- Returns
90
- -------
87
+ Returns:
91
88
  _type_: _description_
92
89
 
93
90
  """
@@ -116,7 +113,6 @@ def create_component_attachment(client, SN, file_path, title=None, description="
116
113
  """Create an attachment to the given component.
117
114
 
118
115
  Args:
119
- ----
120
116
  client: The DB client
121
117
  SN: The SN of the component.
122
118
  file_path: The pat to th efile to be attached.
@@ -167,7 +163,6 @@ def set_component_property(client, SN, property, value):
167
163
  """Set the value of an object property.
168
164
 
169
165
  Args:
170
- ----
171
166
  client: The DB client
172
167
  SN: The object SN
173
168
  property: The property name
@@ -192,7 +187,6 @@ def assemble_component(client, parent, child):
192
187
  """Assemble child into parent.
193
188
 
194
189
  Args:
195
- ----
196
190
  client: The DB client
197
191
  parent: The parent object or container.
198
192
  child: The child to be assembled.
@@ -214,7 +208,6 @@ def set_object_stage(client, SN, stage):
214
208
  """Set stage of object
215
209
 
216
210
  Args:
217
- ----
218
211
  client: DB session
219
212
  SN: Serial number
220
213
  stage: Stage
@@ -247,13 +240,11 @@ def upload_test(client, data, attachments=None):
247
240
  """Upload a test to the DB.
248
241
 
249
242
  Args:
250
- ----
251
243
  client: The DB client
252
244
  data (dict): A dictionary with all the elements of thee test.
253
- attachments (Attachments): one or more (in a list) Attachments to the test
245
+ attachments ([Attachment]): one or more (in a list) Attachment to the test
254
246
 
255
247
  Return:
256
- ------
257
248
  resp: The response of the DB session.
258
249
 
259
250
  """
@@ -288,12 +279,11 @@ def upload_test(client, data, attachments=None):
288
279
  return (str(e))
289
280
 
290
281
 
291
- def create_shipment(session, sender, recipient, items, name=None, send=False, type="domestic",
292
- attachment=None, comments=None):
282
+ def create_shipment(session, sender, recipient, items, name=None, send=False,
283
+ type="domestic", attachment=None, comments=None):
293
284
  """Create a chipment.
294
285
 
295
286
  Args:
296
- ----
297
287
  session : The itkdb session
298
288
  sender : The sender ID
299
289
  recipient : The recipient ID
@@ -301,7 +291,7 @@ def create_shipment(session, sender, recipient, items, name=None, send=False, ty
301
291
  name: the name of the shipment.
302
292
  send: If true, the status of the shipment is updated to inTransit
303
293
  type (optional): Type of shipment. Defaults to "domestic".
304
- attachment (optional): Attachment object.
294
+ attachment (optional, :class:`Attachment`): :class:`Attachment` object.
305
295
  comments (optional): comments for the shipment
306
296
 
307
297
  """
@@ -437,7 +427,6 @@ def get_testrun(session, test_id, out_type="object"):
437
427
  """Retrieve information about a given test.
438
428
 
439
429
  Args:
440
- ----
441
430
  session : The itkdb session
442
431
  test_id : The ID of the test.
443
432
  out_type (optional): Type of output (full or object). Defaults to "object".
@@ -456,7 +445,6 @@ def get_test_skeleton(session, component, test_code, userdef={}, uservalues={}):
456
445
  """Get the skeleton of the given test.
457
446
 
458
447
  Args:
459
- ----
460
448
  session: The DB session
461
449
  component: The component which is tested
462
450
  test_code: The test code
@@ -34,14 +34,15 @@ def find_children(W):
34
34
  return None
35
35
 
36
36
 
37
- class GroundingTest(dbGtkUtils.ITkDBWindow):
37
+ class PetalReceptionTests(dbGtkUtils.ITkDBWindow):
38
38
  """Dashboard class."""
39
39
 
40
- def __init__(self, session):
40
+ def __init__(self, session, help=None):
41
41
  """Initialization."""
42
42
  super().__init__(title="ITkDB Dashboard",
43
43
  session=session,
44
- show_search="Find object with given SN.")
44
+ show_search="Find object with given SN.",
45
+ help=help)
45
46
 
46
47
  # Members
47
48
  self.dbObject = None
@@ -135,7 +136,6 @@ class GroundingTest(dbGtkUtils.ITkDBWindow):
135
136
  """Create and add to notebook a test dialog.
136
137
 
137
138
  Args:
138
- ----
139
139
  label: The label for the Notebook
140
140
  test_name: The DB name of the test
141
141
  institute: The institute.
@@ -268,7 +268,7 @@ def main():
268
268
 
269
269
  client.user_gui = dlg
270
270
 
271
- gTest = GroundingTest(client)
271
+ gTest = PetalReceptionTests(client)
272
272
 
273
273
  gTest.present()
274
274
  gTest.connect("destroy", Gtk.main_quit)