itkdb-gtk 0.0.7__py3-none-any.whl → 0.0.9__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.

itkdb_gtk/ITkDBlogin.py CHANGED
@@ -216,7 +216,7 @@ class ITkDBlogin(Gtk.Dialog):
216
216
  #
217
217
  self.has_window = True
218
218
  self.add_buttons(
219
- Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL, Gtk.STOCK_OK, Gtk.ResponseType.OK
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
 
itkdb_gtk/__init__.py CHANGED
@@ -1,6 +1,6 @@
1
1
  from . import dashBoard
2
2
 
3
- __version__ = "0.0.7"
3
+ __version__ = "0.0.9"
4
4
 
5
5
 
6
6
  def dash_board():
itkdb_gtk/readAVSdata.py CHANGED
@@ -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 = np.sum([float(x) for x in comp_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, True, False, 0)
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, (model, iter, model[iter]))
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
- self.data["institution"] = site
390
- self.write_message("Setting Institution to {}\n".format(self.data["institution"]))
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.7
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
@@ -10,7 +10,6 @@ Classifier: Operating System :: OS Independent
10
10
  Requires-Python: >=3.7
11
11
  Description-Content-Type: text/markdown
12
12
  Requires-Dist: itkdb (>=0.4.0)
13
- Requires-Dist: numpy
14
13
  Requires-Dist: openpyxl
15
14
  Requires-Dist: pyserial
16
15
  Requires-Dist: python-dateutil
@@ -1,26 +1,26 @@
1
1
  itkdb_gtk/GlueWeight.py,sha256=1Ssu6m_KL1PAHHI76yn9bnqSLSqxbc--S-DtV2V1L4g,12294
2
2
  itkdb_gtk/ITkDB.desktop,sha256=v_K4mHsDxb912J1XGo6mOlbW2TkHvYNGrKmiOnsBQqM,172
3
3
  itkdb_gtk/ITkDB.svg,sha256=Rb1DyhhGj504-h3vi-H6BF_Gm-OUciIXWOmzZbjGns4,23991
4
- itkdb_gtk/ITkDBlogin.py,sha256=oP7v5uppBqb27rRKv-v82LsyjPPtAXj55TwH6pzB40Q,9902
4
+ itkdb_gtk/ITkDBlogin.py,sha256=NgDoBoo8Le3Gfoo-w1casKs0mCD4fibZ7NG3esEBiQM,9902
5
5
  itkdb_gtk/ITkDButils.py,sha256=CDnFhbnpKd-eQQE65ocyWzwADf2R0ueCtUwmACSqlZM,14824
6
6
  itkdb_gtk/ShowAttachments.py,sha256=yHa3W1_KtDEGBEcLjGsCONKDP0ntDJNggi3T1bc48Yg,4693
7
7
  itkdb_gtk/ShowComments.py,sha256=Poyx3bljWEMwhB2FDvBVMSRPcqv9aowlDtbbcs8JgYw,2989
8
8
  itkdb_gtk/ShowDefects.py,sha256=hnXZKfGshoTBJindbjrNgO6kKpVXwKO8Cu6Txn4cCXE,3329
9
- itkdb_gtk/__init__.py,sha256=2MX9WidBrRTxKDDWYSszh2iGmIAsJ6OwXNvfubrR3D4,691
9
+ itkdb_gtk/__init__.py,sha256=ob-mMSLTN7o2ihYax-Xz7fPWiiS4D7JPCRCIH-T8I2M,691
10
10
  itkdb_gtk/checkComponent.py,sha256=V5NswtY_ThTaZh0oiyPBhQYvaJNNUpEzLxw-MRH91S4,3731
11
11
  itkdb_gtk/checkJSon.py,sha256=AqPy7Pq5kgZgnHMPa0fgM39RERHuI4uIlZ8qNRUaoFc,1432
12
12
  itkdb_gtk/dashBoard.py,sha256=PrF8F-7wiCVU-fquKcCqaTi4MX5g7-tHm__yo-oauNk,4412
13
13
  itkdb_gtk/dbGtkUtils.py,sha256=_93BlN5iy0YJG47FqeGXJQsQHN8DgvkJDVMoh_4cE_4,20713
14
14
  itkdb_gtk/getShipments.py,sha256=6xNTFAQ1Xon8M20U5BSRJkRc4P7vfNuG4liktoMTaa0,18718
15
15
  itkdb_gtk/groundingTest.py,sha256=mFpKQISfW6ew8-CvB-CMS-geERfY_oxl3XO-PPY7j68,7142
16
- itkdb_gtk/readAVSdata.py,sha256=sdTZhGRlJBsfBWr6OpcEyHXp-D_tk4A3urNjBGpUVko,19401
16
+ itkdb_gtk/readAVSdata.py,sha256=VCoCece2tuhbd7yfaCCTXuRbGEFUUV2gCcJozQYhPRE,19379
17
17
  itkdb_gtk/readGoogleSheet.py,sha256=cQ_pVsS_nwUh0bnXl7AP4in9kQ3Q-p8BIvXvvrTRInc,2679
18
18
  itkdb_gtk/sendShipments.py,sha256=yaKQ30fMG7bt3Zk7Rkgmla04nqfboA8zg3a-rleG9-g,13133
19
- itkdb_gtk/uploadMultipleTests.py,sha256=Tt-7ys7nIcjIpXuU6DLB_YT_s-uZEgV6eDW-N9HPrOA,19659
19
+ itkdb_gtk/uploadMultipleTests.py,sha256=Y63tJnCu0DgqXxDZsquKDKVLyvjD3_PAC5jZuW2m9_A,19648
20
20
  itkdb_gtk/uploadPetalInformation.py,sha256=zXcZEvDj9jzOUSUzzvyLoHvQURSCQ01C5gidHZb4ZP0,22252
21
21
  itkdb_gtk/uploadTest.py,sha256=O6PynyN8jNIo7YCB-TKpN8qfh7pcqE6lPA06CAMFtvY,12154
22
- itkdb_gtk-0.0.7.dist-info/METADATA,sha256=ROvnvlwb1MXVwnYrtsv0WpHTncRa74r77u_iEGp7mCs,2844
23
- itkdb_gtk-0.0.7.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
24
- itkdb_gtk-0.0.7.dist-info/entry_points.txt,sha256=nYAnyyAror1se44NZzvfpU_a1PSVkEM3gMI0otmd8K0,291
25
- itkdb_gtk-0.0.7.dist-info/top_level.txt,sha256=KVRrH4OS8ovzNR9bvADE0ABn5bNpSk987tuH0jCfkbU,10
26
- itkdb_gtk-0.0.7.dist-info/RECORD,,
22
+ itkdb_gtk-0.0.9.dist-info/METADATA,sha256=HRJdC9eXpOI_2v5uUAaWVCAlS8FTSh9xtyvv1S5hSno,2823
23
+ itkdb_gtk-0.0.9.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
24
+ itkdb_gtk-0.0.9.dist-info/entry_points.txt,sha256=nYAnyyAror1se44NZzvfpU_a1PSVkEM3gMI0otmd8K0,291
25
+ itkdb_gtk-0.0.9.dist-info/top_level.txt,sha256=KVRrH4OS8ovzNR9bvADE0ABn5bNpSk987tuH0jCfkbU,10
26
+ itkdb_gtk-0.0.9.dist-info/RECORD,,