itkdb-gtk 0.0.7__tar.gz → 0.0.9__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.7 → itkdb_gtk-0.0.9}/PKG-INFO +1 -1
- {itkdb_gtk-0.0.7 → itkdb_gtk-0.0.9}/itkdb_gtk/ITkDBlogin.py +1 -1
- {itkdb_gtk-0.0.7 → itkdb_gtk-0.0.9}/itkdb_gtk/__init__.py +1 -1
- {itkdb_gtk-0.0.7 → itkdb_gtk-0.0.9}/itkdb_gtk/readAVSdata.py +1 -2
- {itkdb_gtk-0.0.7 → itkdb_gtk-0.0.9}/itkdb_gtk/uploadMultipleTests.py +8 -7
- {itkdb_gtk-0.0.7 → itkdb_gtk-0.0.9}/itkdb_gtk.egg-info/PKG-INFO +1 -1
- {itkdb_gtk-0.0.7 → itkdb_gtk-0.0.9}/itkdb_gtk.egg-info/requires.txt +0 -1
- {itkdb_gtk-0.0.7 → itkdb_gtk-0.0.9}/pyproject.toml +1 -2
- {itkdb_gtk-0.0.7 → itkdb_gtk-0.0.9}/README.md +0 -0
- {itkdb_gtk-0.0.7 → itkdb_gtk-0.0.9}/itkdb_gtk/GlueWeight.py +0 -0
- {itkdb_gtk-0.0.7 → itkdb_gtk-0.0.9}/itkdb_gtk/ITkDB.desktop +0 -0
- {itkdb_gtk-0.0.7 → itkdb_gtk-0.0.9}/itkdb_gtk/ITkDB.svg +0 -0
- {itkdb_gtk-0.0.7 → itkdb_gtk-0.0.9}/itkdb_gtk/ITkDButils.py +0 -0
- {itkdb_gtk-0.0.7 → itkdb_gtk-0.0.9}/itkdb_gtk/ShowAttachments.py +0 -0
- {itkdb_gtk-0.0.7 → itkdb_gtk-0.0.9}/itkdb_gtk/ShowComments.py +0 -0
- {itkdb_gtk-0.0.7 → itkdb_gtk-0.0.9}/itkdb_gtk/ShowDefects.py +0 -0
- {itkdb_gtk-0.0.7 → itkdb_gtk-0.0.9}/itkdb_gtk/checkComponent.py +0 -0
- {itkdb_gtk-0.0.7 → itkdb_gtk-0.0.9}/itkdb_gtk/checkJSon.py +0 -0
- {itkdb_gtk-0.0.7 → itkdb_gtk-0.0.9}/itkdb_gtk/dashBoard.py +0 -0
- {itkdb_gtk-0.0.7 → itkdb_gtk-0.0.9}/itkdb_gtk/dbGtkUtils.py +0 -0
- {itkdb_gtk-0.0.7 → itkdb_gtk-0.0.9}/itkdb_gtk/getShipments.py +0 -0
- {itkdb_gtk-0.0.7 → itkdb_gtk-0.0.9}/itkdb_gtk/groundingTest.py +0 -0
- {itkdb_gtk-0.0.7 → itkdb_gtk-0.0.9}/itkdb_gtk/readGoogleSheet.py +0 -0
- {itkdb_gtk-0.0.7 → itkdb_gtk-0.0.9}/itkdb_gtk/sendShipments.py +0 -0
- {itkdb_gtk-0.0.7 → itkdb_gtk-0.0.9}/itkdb_gtk/uploadPetalInformation.py +0 -0
- {itkdb_gtk-0.0.7 → itkdb_gtk-0.0.9}/itkdb_gtk/uploadTest.py +0 -0
- {itkdb_gtk-0.0.7 → itkdb_gtk-0.0.9}/itkdb_gtk.egg-info/SOURCES.txt +0 -0
- {itkdb_gtk-0.0.7 → itkdb_gtk-0.0.9}/itkdb_gtk.egg-info/dependency_links.txt +0 -0
- {itkdb_gtk-0.0.7 → itkdb_gtk-0.0.9}/itkdb_gtk.egg-info/entry_points.txt +0 -0
- {itkdb_gtk-0.0.7 → itkdb_gtk-0.0.9}/itkdb_gtk.egg-info/top_level.txt +0 -0
- {itkdb_gtk-0.0.7 → itkdb_gtk-0.0.9}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: itkdb_gtk
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.9
|
|
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
|
|
@@ -216,7 +216,7 @@ class ITkDBlogin(Gtk.Dialog):
|
|
|
216
216
|
#
|
|
217
217
|
self.has_window = True
|
|
218
218
|
self.add_buttons(
|
|
219
|
-
Gtk.
|
|
219
|
+
Gtk.STOCK_OK, Gtk.ResponseType.OK, Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL
|
|
220
220
|
)
|
|
221
221
|
# self.set_position(Gtk.WindowPosition.CENTER_ALWAYS)
|
|
222
222
|
|
|
@@ -11,7 +11,6 @@ except ModuleNotFoundError:
|
|
|
11
11
|
from itkdb_gtk import ITkDBlogin, ITkDButils
|
|
12
12
|
|
|
13
13
|
import dateutil.parser
|
|
14
|
-
import numpy as np
|
|
15
14
|
import openpyxl as XL
|
|
16
15
|
from openpyxl.cell.cell import MergedCell
|
|
17
16
|
from openpyxl.utils.exceptions import InvalidFileException
|
|
@@ -508,7 +507,7 @@ def readProductionSheet(session, fnam, SN):
|
|
|
508
507
|
# Weighing
|
|
509
508
|
weighing = create_weight(session, SN, test_date, manager)
|
|
510
509
|
comp_weight = [get_float(x[0]) for x in sheet['d12:d22']]
|
|
511
|
-
petal_weight =
|
|
510
|
+
petal_weight = sum([float(x) for x in comp_weight])
|
|
512
511
|
weighing["results"]["WEIGHT_FACING_FRONT"] = comp_weight[0]
|
|
513
512
|
weighing["results"]["WEIGHT_FACING_BACK"] = comp_weight[1]
|
|
514
513
|
weighing["results"]["WEIGHT_LOCATOR_A"] = comp_weight[2]
|
|
@@ -33,6 +33,7 @@ gtk_runs, gtk_args = Gtk.init_check()
|
|
|
33
33
|
def handle_test_date(the_date):
|
|
34
34
|
"""Edit date."""
|
|
35
35
|
the_date = the_date[:19].replace('T', ' ')
|
|
36
|
+
return the_date
|
|
36
37
|
|
|
37
38
|
|
|
38
39
|
def all_files(root, patterns='*', single_level=False, yield_folders=False):
|
|
@@ -138,7 +139,7 @@ class UploadMultipleTests(dbGtkUtils.ITkDBWindow):
|
|
|
138
139
|
|
|
139
140
|
# Data panel
|
|
140
141
|
grid = Gtk.Grid(column_spacing=5, row_spacing=1)
|
|
141
|
-
self.mainBox.pack_start(grid,
|
|
142
|
+
self.mainBox.pack_start(grid, False, False, 0)
|
|
142
143
|
|
|
143
144
|
# The test file widgets
|
|
144
145
|
lbl = Gtk.Label(label="Select Test Files: ")
|
|
@@ -228,8 +229,8 @@ class UploadMultipleTests(dbGtkUtils.ITkDBWindow):
|
|
|
228
229
|
model, iter = select.get_selected()
|
|
229
230
|
if not iter:
|
|
230
231
|
return
|
|
231
|
-
|
|
232
|
-
self.on_show_attachments(None,
|
|
232
|
+
|
|
233
|
+
self.on_show_attachments(None, (model, iter, model[iter]))
|
|
233
234
|
return
|
|
234
235
|
|
|
235
236
|
if event.button != 3:
|
|
@@ -373,7 +374,7 @@ class UploadMultipleTests(dbGtkUtils.ITkDBWindow):
|
|
|
373
374
|
data = json.loads(open(ifile).read())
|
|
374
375
|
errors, missing = check_data(data)
|
|
375
376
|
if len(missing):
|
|
376
|
-
self.write_message(Path(ifile).name)
|
|
377
|
+
self.write_message("{}\n".format(Path(ifile).name))
|
|
377
378
|
self.write_message("Some keys are missing in the JSon file.\n")
|
|
378
379
|
self.write_message("{}\n".format("\n".join(['\t'+line for line in missing])))
|
|
379
380
|
|
|
@@ -386,8 +387,8 @@ class UploadMultipleTests(dbGtkUtils.ITkDBWindow):
|
|
|
386
387
|
site = default_site
|
|
387
388
|
|
|
388
389
|
if site:
|
|
389
|
-
|
|
390
|
-
self.write_message("Setting Institution to {}\n".format(
|
|
390
|
+
data["institution"] = site
|
|
391
|
+
self.write_message("Setting Institution to {}\n".format(data["institution"]))
|
|
391
392
|
|
|
392
393
|
else:
|
|
393
394
|
has_errors = True
|
|
@@ -411,7 +412,7 @@ class UploadMultipleTests(dbGtkUtils.ITkDBWindow):
|
|
|
411
412
|
|
|
412
413
|
# We need to delete tis, which is "unofficial"
|
|
413
414
|
del data["attachments"]
|
|
414
|
-
|
|
415
|
+
|
|
415
416
|
model = self.tree.get_model()
|
|
416
417
|
comments = data.get("comments", [])
|
|
417
418
|
defects = data.get("defects", [])
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: itkdb-gtk
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.9
|
|
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.0.
|
|
7
|
+
version = "0.0.9"
|
|
8
8
|
authors = [
|
|
9
9
|
{ name="Carlos Lacasta", email="carlos.lacasta@cern.ch" },
|
|
10
10
|
]
|
|
@@ -13,7 +13,6 @@ readme = "README.md"
|
|
|
13
13
|
requires-python = ">=3.7"
|
|
14
14
|
dependencies = [
|
|
15
15
|
"itkdb>=0.4.0",
|
|
16
|
-
"numpy",
|
|
17
16
|
"openpyxl",
|
|
18
17
|
"pyserial",
|
|
19
18
|
"python_dateutil",
|
|
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
|