itkdb-gtk 0.10.10.dev2__tar.gz → 0.10.10.dev4__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.10.10.dev2 → itkdb_gtk-0.10.10.dev4}/PKG-INFO +1 -1
- {itkdb_gtk-0.10.10.dev2 → itkdb_gtk-0.10.10.dev4}/itkdb_gtk/ITkDButils.py +28 -23
- {itkdb_gtk-0.10.10.dev2 → itkdb_gtk-0.10.10.dev4}/itkdb_gtk/PanelVisualInspection.py +10 -6
- {itkdb_gtk-0.10.10.dev2 → itkdb_gtk-0.10.10.dev4}/itkdb_gtk/__init__.py +1 -1
- {itkdb_gtk-0.10.10.dev2 → itkdb_gtk-0.10.10.dev4}/itkdb_gtk.egg-info/PKG-INFO +1 -1
- {itkdb_gtk-0.10.10.dev2 → itkdb_gtk-0.10.10.dev4}/pyproject.toml +1 -1
- {itkdb_gtk-0.10.10.dev2 → itkdb_gtk-0.10.10.dev4}/README.md +0 -0
- {itkdb_gtk-0.10.10.dev2 → itkdb_gtk-0.10.10.dev4}/itkdb_gtk/CreateShipments.py +0 -0
- {itkdb_gtk-0.10.10.dev2 → itkdb_gtk-0.10.10.dev4}/itkdb_gtk/GetShipments.py +0 -0
- {itkdb_gtk-0.10.10.dev2 → itkdb_gtk-0.10.10.dev4}/itkdb_gtk/GlueWeight.py +0 -0
- {itkdb_gtk-0.10.10.dev2 → itkdb_gtk-0.10.10.dev4}/itkdb_gtk/ITkDB.desktop +0 -0
- {itkdb_gtk-0.10.10.dev2 → itkdb_gtk-0.10.10.dev4}/itkdb_gtk/ITkDB.svg +0 -0
- {itkdb_gtk-0.10.10.dev2 → itkdb_gtk-0.10.10.dev4}/itkdb_gtk/ITkDBlogin.py +0 -0
- {itkdb_gtk-0.10.10.dev2 → itkdb_gtk-0.10.10.dev4}/itkdb_gtk/PetalReceptionTests.py +0 -0
- {itkdb_gtk-0.10.10.dev2 → itkdb_gtk-0.10.10.dev4}/itkdb_gtk/SensorUtils.py +0 -0
- {itkdb_gtk-0.10.10.dev2 → itkdb_gtk-0.10.10.dev4}/itkdb_gtk/ShowAttachments.py +0 -0
- {itkdb_gtk-0.10.10.dev2 → itkdb_gtk-0.10.10.dev4}/itkdb_gtk/ShowComments.py +0 -0
- {itkdb_gtk-0.10.10.dev2 → itkdb_gtk-0.10.10.dev4}/itkdb_gtk/ShowDefects.py +0 -0
- {itkdb_gtk-0.10.10.dev2 → itkdb_gtk-0.10.10.dev4}/itkdb_gtk/UploadModuleIV.py +0 -0
- {itkdb_gtk-0.10.10.dev2 → itkdb_gtk-0.10.10.dev4}/itkdb_gtk/UploadMultipleTests.py +0 -0
- {itkdb_gtk-0.10.10.dev2 → itkdb_gtk-0.10.10.dev4}/itkdb_gtk/UploadPetalInformation.py +0 -0
- {itkdb_gtk-0.10.10.dev2 → itkdb_gtk-0.10.10.dev4}/itkdb_gtk/UploadTest.py +0 -0
- {itkdb_gtk-0.10.10.dev2 → itkdb_gtk-0.10.10.dev4}/itkdb_gtk/WireBondGui.py +0 -0
- {itkdb_gtk-0.10.10.dev2 → itkdb_gtk-0.10.10.dev4}/itkdb_gtk/dashBoard.py +0 -0
- {itkdb_gtk-0.10.10.dev2 → itkdb_gtk-0.10.10.dev4}/itkdb_gtk/dbGtkUtils.py +0 -0
- {itkdb_gtk-0.10.10.dev2 → itkdb_gtk-0.10.10.dev4}/itkdb_gtk/readAVSdata.py +0 -0
- {itkdb_gtk-0.10.10.dev2 → itkdb_gtk-0.10.10.dev4}/itkdb_gtk/readGoogleSheet.py +0 -0
- {itkdb_gtk-0.10.10.dev2 → itkdb_gtk-0.10.10.dev4}/itkdb_gtk/untrash_component.py +0 -0
- {itkdb_gtk-0.10.10.dev2 → itkdb_gtk-0.10.10.dev4}/itkdb_gtk.egg-info/SOURCES.txt +0 -0
- {itkdb_gtk-0.10.10.dev2 → itkdb_gtk-0.10.10.dev4}/itkdb_gtk.egg-info/dependency_links.txt +0 -0
- {itkdb_gtk-0.10.10.dev2 → itkdb_gtk-0.10.10.dev4}/itkdb_gtk.egg-info/entry_points.txt +0 -0
- {itkdb_gtk-0.10.10.dev2 → itkdb_gtk-0.10.10.dev4}/itkdb_gtk.egg-info/requires.txt +0 -0
- {itkdb_gtk-0.10.10.dev2 → itkdb_gtk-0.10.10.dev4}/itkdb_gtk.egg-info/top_level.txt +0 -0
- {itkdb_gtk-0.10.10.dev2 → itkdb_gtk-0.10.10.dev4}/setup.cfg +0 -0
- {itkdb_gtk-0.10.10.dev2 → itkdb_gtk-0.10.10.dev4}/test/testAnimated.py +0 -0
- {itkdb_gtk-0.10.10.dev2 → itkdb_gtk-0.10.10.dev4}/test/testBatch.py +0 -0
- {itkdb_gtk-0.10.10.dev2 → itkdb_gtk-0.10.10.dev4}/test/testComponent.py +0 -0
- {itkdb_gtk-0.10.10.dev2 → itkdb_gtk-0.10.10.dev4}/test/test_attachment.py +0 -0
- {itkdb_gtk-0.10.10.dev2 → itkdb_gtk-0.10.10.dev4}/test/test_holes.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: itkdb_gtk
|
|
3
|
-
Version: 0.10.10.
|
|
3
|
+
Version: 0.10.10.dev4
|
|
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
|
|
@@ -83,7 +83,7 @@ def get_db_date(timestamp=None):
|
|
|
83
83
|
try:
|
|
84
84
|
this_date = dateutil.parser.parse(timestamp)
|
|
85
85
|
out = date2string(this_date)
|
|
86
|
-
|
|
86
|
+
|
|
87
87
|
except (OverflowError, dateutil.parser.ParserError):
|
|
88
88
|
out = ""
|
|
89
89
|
|
|
@@ -282,10 +282,7 @@ def upload_test(client, data, attachments=None, check_runNumber=False):
|
|
|
282
282
|
# Check the given run_number. If already existing, give another one which
|
|
283
283
|
# will try to be consecutive.
|
|
284
284
|
if check_runNumber:
|
|
285
|
-
|
|
286
|
-
run_no = max([x for x in values.keys()])+1
|
|
287
|
-
return run_no
|
|
288
|
-
|
|
285
|
+
# Get all the runNumbers in this test
|
|
289
286
|
test_list = client.get("listTestRunsByComponent",
|
|
290
287
|
json={
|
|
291
288
|
"filterMap":{
|
|
@@ -295,20 +292,27 @@ def upload_test(client, data, attachments=None, check_runNumber=False):
|
|
|
295
292
|
}
|
|
296
293
|
}
|
|
297
294
|
)
|
|
298
|
-
|
|
295
|
+
runN= {}
|
|
299
296
|
for T in test_list:
|
|
300
|
-
|
|
301
|
-
run_no = int(T["runNumber"])
|
|
302
|
-
except ValueError:
|
|
303
|
-
run_no = get_new_value(values)
|
|
297
|
+
runN[T["runNumber"]] = 1
|
|
304
298
|
|
|
305
|
-
|
|
299
|
+
if data["runNumber"] in runN:
|
|
300
|
+
# if the given runNumber is there, try to create a new one.
|
|
301
|
+
print("runNumber {} already in {} of {}".format(data["runNumber"], data["testType"], data["component"]))
|
|
302
|
+
try:
|
|
303
|
+
irun = int(data["runNumber"])
|
|
304
|
+
for i in range(irun+1, 100):
|
|
305
|
+
newRn = "{}".format(i+1)
|
|
306
|
+
if newRn not in runN:
|
|
307
|
+
data["runNumber"] = newRn
|
|
308
|
+
break
|
|
306
309
|
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
310
|
+
except ValueError:
|
|
311
|
+
for i in range(100):
|
|
312
|
+
newRn = "{}_{}".format(data["runNumber"], i+1)
|
|
313
|
+
if newRn not in runN:
|
|
314
|
+
data["runNumber"] = newRn
|
|
315
|
+
break
|
|
312
316
|
|
|
313
317
|
# Try to upload the test
|
|
314
318
|
try:
|
|
@@ -346,7 +350,8 @@ def upload_test(client, data, attachments=None, check_runNumber=False):
|
|
|
346
350
|
data=data,
|
|
347
351
|
files=attachment)
|
|
348
352
|
try:
|
|
349
|
-
|
|
353
|
+
url = db_response['url'].replace("https://eosatlas.cern.ch","https://cernbox.cern.ch/files/spaces")
|
|
354
|
+
attachment_urls[path.name] = url
|
|
350
355
|
|
|
351
356
|
except KeyError:
|
|
352
357
|
pass
|
|
@@ -368,10 +373,10 @@ def set_test_run_parameter(session, test_run, parameter, value):
|
|
|
368
373
|
"""
|
|
369
374
|
global db_response
|
|
370
375
|
try:
|
|
371
|
-
db_response = session.post("setTestRunParameter",
|
|
376
|
+
db_response = session.post("setTestRunParameter",
|
|
372
377
|
json={"testRun": test_run, "code": parameter, "value": value})
|
|
373
378
|
return None
|
|
374
|
-
|
|
379
|
+
|
|
375
380
|
except Exception as E:
|
|
376
381
|
return (str(E))
|
|
377
382
|
|
|
@@ -380,11 +385,11 @@ def create_test_run_comment(session, test_run, comments):
|
|
|
380
385
|
global db_response
|
|
381
386
|
if not isinstance(comments, Iterable):
|
|
382
387
|
comments = (comments)
|
|
383
|
-
|
|
388
|
+
|
|
384
389
|
try:
|
|
385
390
|
db_response = session.post("createTestRunComment", json={"testRun": test_run, "comments": comments})
|
|
386
391
|
return None
|
|
387
|
-
|
|
392
|
+
|
|
388
393
|
except Exception as E:
|
|
389
394
|
return (str(E))
|
|
390
395
|
|
|
@@ -672,12 +677,12 @@ def get_db_user(client):
|
|
|
672
677
|
|
|
673
678
|
Args:
|
|
674
679
|
client (itkdb.Client): The DB client.
|
|
675
|
-
|
|
680
|
+
|
|
676
681
|
"""
|
|
677
682
|
global db_response
|
|
678
683
|
if client is None:
|
|
679
684
|
return None
|
|
680
|
-
|
|
685
|
+
|
|
681
686
|
try:
|
|
682
687
|
db_response = client.get("getUser", json={"userIdentity": client.user.identity})
|
|
683
688
|
return db_response
|
|
@@ -511,7 +511,7 @@ class PanelVisualInspection(dbGtkUtils.ITkDBWindow):
|
|
|
511
511
|
ipos = rc.find("The following details may help:")
|
|
512
512
|
msg = rc[ipos:]
|
|
513
513
|
dbGtkUtils.complain("Failed uploading test {}-{}".format(payload["component"], payload["testType"]), msg)
|
|
514
|
-
self.write_message(msg)
|
|
514
|
+
self.write_message(msg+"\n")
|
|
515
515
|
|
|
516
516
|
else:
|
|
517
517
|
self.write_message("Upload {}-{} successfull\n".format(payload["component"], payload["testType"]))
|
|
@@ -525,15 +525,16 @@ class PanelVisualInspection(dbGtkUtils.ITkDBWindow):
|
|
|
525
525
|
rc = ITkDButils.set_test_run_parameter(self.session,
|
|
526
526
|
ITkDButils.uploaded_test_runs[0],
|
|
527
527
|
"COMMENT", "Picture of PW carrier")
|
|
528
|
-
|
|
528
|
+
|
|
529
529
|
rc = ITkDButils.set_test_run_parameter(self.session,
|
|
530
530
|
ITkDButils.uploaded_test_runs[0],
|
|
531
531
|
"LINK_TO_PICTURE", global_link)
|
|
532
532
|
if rc:
|
|
533
533
|
ipos = rc.find("The following details may help:")
|
|
534
534
|
msg = rc[ipos:]
|
|
535
|
-
dbGtkUtils.complain("Failed updating LINK_TO_PICTURE {}-{}".format(payload["component"],
|
|
536
|
-
|
|
535
|
+
dbGtkUtils.complain("Failed updating LINK_TO_PICTURE {}-{}".format(payload["component"],
|
|
536
|
+
payload["testType"]), msg)
|
|
537
|
+
self.write_message(msg+'\n')
|
|
537
538
|
|
|
538
539
|
elif payload["testType"] == "VISUAL_INSPECTION_RECEPTION":
|
|
539
540
|
rc = ITkDButils.create_test_run_comment(self.session,
|
|
@@ -542,8 +543,11 @@ class PanelVisualInspection(dbGtkUtils.ITkDBWindow):
|
|
|
542
543
|
if rc:
|
|
543
544
|
ipos = rc.find("The following details may help:")
|
|
544
545
|
msg = rc[ipos:]
|
|
545
|
-
dbGtkUtils.complain("Failed adding global link as comment: {}-{}".format(payload["component"],
|
|
546
|
-
|
|
546
|
+
dbGtkUtils.complain("Failed adding global link as comment: {}-{}".format(payload["component"],
|
|
547
|
+
payload["testType"]), msg)
|
|
548
|
+
self.write_message(msg+"\n")
|
|
549
|
+
else:
|
|
550
|
+
self.write_message("Image: {}\n".format(global_link))
|
|
547
551
|
|
|
548
552
|
|
|
549
553
|
n_items += 1
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: itkdb_gtk
|
|
3
|
-
Version: 0.10.10.
|
|
3
|
+
Version: 0.10.10.dev4
|
|
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
|
|
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
|
|
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
|