itkdb-gtk 0.14.4__tar.gz → 0.15.0__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 (39) hide show
  1. {itkdb_gtk-0.14.4 → itkdb_gtk-0.15.0}/PKG-INFO +1 -1
  2. {itkdb_gtk-0.14.4 → itkdb_gtk-0.15.0}/itkdb_gtk/ITkDButils.py +32 -6
  3. {itkdb_gtk-0.14.4 → itkdb_gtk-0.15.0}/itkdb_gtk/__init__.py +1 -1
  4. {itkdb_gtk-0.14.4 → itkdb_gtk-0.15.0}/itkdb_gtk.egg-info/PKG-INFO +1 -1
  5. {itkdb_gtk-0.14.4 → itkdb_gtk-0.15.0}/pyproject.toml +1 -1
  6. {itkdb_gtk-0.14.4 → itkdb_gtk-0.15.0}/README.md +0 -0
  7. {itkdb_gtk-0.14.4 → itkdb_gtk-0.15.0}/itkdb_gtk/CreateShipments.py +0 -0
  8. {itkdb_gtk-0.14.4 → itkdb_gtk-0.15.0}/itkdb_gtk/GetShipments.py +0 -0
  9. {itkdb_gtk-0.14.4 → itkdb_gtk-0.15.0}/itkdb_gtk/GlueWeight.py +0 -0
  10. {itkdb_gtk-0.14.4 → itkdb_gtk-0.15.0}/itkdb_gtk/ITkDB.desktop +0 -0
  11. {itkdb_gtk-0.14.4 → itkdb_gtk-0.15.0}/itkdb_gtk/ITkDB.svg +0 -0
  12. {itkdb_gtk-0.14.4 → itkdb_gtk-0.15.0}/itkdb_gtk/ITkDBlogin.py +0 -0
  13. {itkdb_gtk-0.14.4 → itkdb_gtk-0.15.0}/itkdb_gtk/PanelVisualInspection.py +0 -0
  14. {itkdb_gtk-0.14.4 → itkdb_gtk-0.15.0}/itkdb_gtk/SensorUtils.py +0 -0
  15. {itkdb_gtk-0.14.4 → itkdb_gtk-0.15.0}/itkdb_gtk/ShowAttachments.py +0 -0
  16. {itkdb_gtk-0.14.4 → itkdb_gtk-0.15.0}/itkdb_gtk/ShowComments.py +0 -0
  17. {itkdb_gtk-0.14.4 → itkdb_gtk-0.15.0}/itkdb_gtk/ShowDefects.py +0 -0
  18. {itkdb_gtk-0.14.4 → itkdb_gtk-0.15.0}/itkdb_gtk/UploadModuleIV.py +0 -0
  19. {itkdb_gtk-0.14.4 → itkdb_gtk-0.15.0}/itkdb_gtk/UploadMultipleTests.py +0 -0
  20. {itkdb_gtk-0.14.4 → itkdb_gtk-0.15.0}/itkdb_gtk/UploadTest.py +0 -0
  21. {itkdb_gtk-0.14.4 → itkdb_gtk-0.15.0}/itkdb_gtk/VisualInspection.py +0 -0
  22. {itkdb_gtk-0.14.4 → itkdb_gtk-0.15.0}/itkdb_gtk/WireBondGui.py +0 -0
  23. {itkdb_gtk-0.14.4 → itkdb_gtk-0.15.0}/itkdb_gtk/dashBoard.py +0 -0
  24. {itkdb_gtk-0.14.4 → itkdb_gtk-0.15.0}/itkdb_gtk/dbGtkUtils.py +0 -0
  25. {itkdb_gtk-0.14.4 → itkdb_gtk-0.15.0}/itkdb_gtk/readGoogleSheet.py +0 -0
  26. {itkdb_gtk-0.14.4 → itkdb_gtk-0.15.0}/itkdb_gtk/untrash_component.py +0 -0
  27. {itkdb_gtk-0.14.4 → itkdb_gtk-0.15.0}/itkdb_gtk.egg-info/SOURCES.txt +0 -0
  28. {itkdb_gtk-0.14.4 → itkdb_gtk-0.15.0}/itkdb_gtk.egg-info/dependency_links.txt +0 -0
  29. {itkdb_gtk-0.14.4 → itkdb_gtk-0.15.0}/itkdb_gtk.egg-info/entry_points.txt +0 -0
  30. {itkdb_gtk-0.14.4 → itkdb_gtk-0.15.0}/itkdb_gtk.egg-info/requires.txt +0 -0
  31. {itkdb_gtk-0.14.4 → itkdb_gtk-0.15.0}/itkdb_gtk.egg-info/top_level.txt +0 -0
  32. {itkdb_gtk-0.14.4 → itkdb_gtk-0.15.0}/setup.cfg +0 -0
  33. {itkdb_gtk-0.14.4 → itkdb_gtk-0.15.0}/test/testAnimated.py +0 -0
  34. {itkdb_gtk-0.14.4 → itkdb_gtk-0.15.0}/test/testBatch.py +0 -0
  35. {itkdb_gtk-0.14.4 → itkdb_gtk-0.15.0}/test/testComponent.py +0 -0
  36. {itkdb_gtk-0.14.4 → itkdb_gtk-0.15.0}/test/testRange.py +0 -0
  37. {itkdb_gtk-0.14.4 → itkdb_gtk-0.15.0}/test/testThread.py +0 -0
  38. {itkdb_gtk-0.14.4 → itkdb_gtk-0.15.0}/test/test_attachment.py +0 -0
  39. {itkdb_gtk-0.14.4 → itkdb_gtk-0.15.0}/test/test_holes.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: itkdb_gtk
3
- Version: 0.14.4
3
+ Version: 0.15.0
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
@@ -112,7 +112,7 @@ def set_petal_core_batch(session, petal_core):
112
112
  tp = petal_core["type"]
113
113
  else:
114
114
  tp = petal_core["type"]["code"]
115
-
115
+
116
116
  if tp != "CORE_AVS":
117
117
  return
118
118
 
@@ -128,7 +128,8 @@ def set_petal_core_batch(session, petal_core):
128
128
  rc = session.post("addBatchComponent", json={"id":batch_list[batch_code], "component": petal_core["id"]})
129
129
  return rc
130
130
 
131
- def registerPetalCore(client, SN, alias, HC_id=None):
131
+
132
+ def registerPetalCore(client, SN, alias, HC_id=None, petal_core=None):
132
133
  """Register a Petal Core in the DB.
133
134
 
134
135
  Args:
@@ -148,19 +149,44 @@ def registerPetalCore(client, SN, alias, HC_id=None):
148
149
  "componentType": "CORE_PETAL",
149
150
  "type": "CORE_AVS",
150
151
  "serialNumber": SN,
151
- "properties": {'DESY_ID': alias}
152
+ "properties": {'PRODUCTION_ID': alias}
152
153
  }
153
154
  if HC_id is not None:
154
155
  dto["properties"]["HC_ID"] = HC_id
155
156
 
157
+ the_component = None
158
+
156
159
  try:
157
- db_response = client.post('registerComponent', json=dto)
158
- set_petal_core_batch(client, db_response["component"])
159
- return db_response['component']
160
+ if petal_core is None:
161
+ db_response = client.post('registerComponent', json=dto)
162
+ petal_core = db_response['component']
163
+
164
+ else:
165
+ # WE set the alternative ID and the HC_ID
166
+ the_component = SN
167
+ if petal_core["alternativeIdentifier"] is None:
168
+ dto = {
169
+ "component": SN,
170
+ "code": "PRODUCTION_ID",
171
+ "value": alias
172
+ }
173
+ db_response = client.post("setComponentProperty", json=dto)
174
+
175
+ if HC_id is not None:
176
+ dto = {
177
+ "component": SN,
178
+ "code": "HC_ID",
179
+ "value": HC_id
180
+ }
181
+ db_response = client.post("setComponentProperty", json=dto)
182
+
183
+ set_petal_core_batch(client, petal_core)
184
+ return petal_core
160
185
 
161
186
  except KeyError:
162
187
  return None
163
188
 
189
+
164
190
  def create_component_attachment(client, SN, file_path, title=None, description="", item_type="component"):
165
191
  """Create an attachment to the given component.
166
192
 
@@ -1,6 +1,6 @@
1
1
  """ itkdb-gtk python module
2
2
  """
3
- __version__ = "0.14.4"
3
+ __version__ = "0.15.0"
4
4
 
5
5
 
6
6
  def dash_board():
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: itkdb_gtk
3
- Version: 0.14.4
3
+ Version: 0.15.0
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
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "itkdb_gtk"
7
- version = "0.14.4"
7
+ version = "0.15.0"
8
8
  authors = [
9
9
  { name="Carlos Lacasta", email="carlos.lacasta@cern.ch" },
10
10
  ]
File without changes
File without changes
File without changes
File without changes