itkdb-gtk 0.0.16.dev3__py3-none-any.whl → 0.0.16.dev5__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/UploadModuleIV.py +22 -3
- itkdb_gtk/__init__.py +1 -1
- {itkdb_gtk-0.0.16.dev3.dist-info → itkdb_gtk-0.0.16.dev5.dist-info}/METADATA +1 -1
- {itkdb_gtk-0.0.16.dev3.dist-info → itkdb_gtk-0.0.16.dev5.dist-info}/RECORD +7 -7
- {itkdb_gtk-0.0.16.dev3.dist-info → itkdb_gtk-0.0.16.dev5.dist-info}/WHEEL +0 -0
- {itkdb_gtk-0.0.16.dev3.dist-info → itkdb_gtk-0.0.16.dev5.dist-info}/entry_points.txt +0 -0
- {itkdb_gtk-0.0.16.dev3.dist-info → itkdb_gtk-0.0.16.dev5.dist-info}/top_level.txt +0 -0
itkdb_gtk/UploadModuleIV.py
CHANGED
|
@@ -14,6 +14,7 @@ import os
|
|
|
14
14
|
import json
|
|
15
15
|
import warnings
|
|
16
16
|
from pathlib import Path
|
|
17
|
+
import shutil
|
|
17
18
|
|
|
18
19
|
import gi
|
|
19
20
|
import tempfile
|
|
@@ -537,6 +538,23 @@ class IVwindow(dbGtkUtils.ITkDBWindow):
|
|
|
537
538
|
js_out.write(json.dumps(test, indent=3, cls=dbGtkUtils.MyEncoder))
|
|
538
539
|
js_out.close()
|
|
539
540
|
|
|
541
|
+
if dbGtkUtils.ask_for_confirmation("Save Data File locally?", "Saves attached file also locally."):
|
|
542
|
+
fc = Gtk.FileChooserDialog(title="Save data file", action=Gtk.FileChooserAction.SAVE)
|
|
543
|
+
fc.add_buttons(
|
|
544
|
+
Gtk.STOCK_CANCEL,
|
|
545
|
+
Gtk.ResponseType.CANCEL,
|
|
546
|
+
Gtk.STOCK_OPEN,
|
|
547
|
+
Gtk.ResponseType.OK,
|
|
548
|
+
)
|
|
549
|
+
|
|
550
|
+
fc.set_current_name("{}.dat".format(fnam))
|
|
551
|
+
rc = fc.run()
|
|
552
|
+
if rc == Gtk.ResponseType.OK:
|
|
553
|
+
shutil.copyfile(data_out.name, fc.get_filename())
|
|
554
|
+
|
|
555
|
+
fc.hide()
|
|
556
|
+
fc.destroy()
|
|
557
|
+
|
|
540
558
|
attachment = ITkDButils.Attachment(data_out.name, "resultsFile", fnam)
|
|
541
559
|
uploadW = UploadTest.UploadTest(self.session, js_out.name, attachment)
|
|
542
560
|
uploadW.connect("destroy", remove_files, [data_out.name, js_out.name])
|
|
@@ -592,6 +610,7 @@ class IVwindow(dbGtkUtils.ITkDBWindow):
|
|
|
592
610
|
print(self.mod_type["single"])
|
|
593
611
|
|
|
594
612
|
self.single_SN.set_text("{} - {}".format(SN, md["type"]["name"]))
|
|
613
|
+
self.fig.clf()
|
|
595
614
|
self.show_curve(
|
|
596
615
|
131,
|
|
597
616
|
mdata["curve"]["V"],
|
|
@@ -627,7 +646,7 @@ class IVwindow(dbGtkUtils.ITkDBWindow):
|
|
|
627
646
|
return
|
|
628
647
|
|
|
629
648
|
# Check that it exists in the DB
|
|
630
|
-
if len(SN) != 14 or SN[
|
|
649
|
+
if len(SN) != 14 or SN[0:4] != "20US":
|
|
631
650
|
self.write_message("Invalid SN: {}\n".format(SN))
|
|
632
651
|
SN = dbGtkUtils.get_a_value(
|
|
633
652
|
"Invalid SN", "Give Ring or corresponding Half Module SN"
|
|
@@ -743,6 +762,7 @@ class IVwindow(dbGtkUtils.ITkDBWindow):
|
|
|
743
762
|
def show_curve(self, subplot, X, Y, title=None, xlabel="X", ylabel="Y"):
|
|
744
763
|
"""Shows data"""
|
|
745
764
|
ax = self.fig.add_subplot(subplot)
|
|
765
|
+
plt.cla()
|
|
746
766
|
if xlabel:
|
|
747
767
|
ax.set_xlabel(xlabel)
|
|
748
768
|
|
|
@@ -798,7 +818,6 @@ class IVwindow(dbGtkUtils.ITkDBWindow):
|
|
|
798
818
|
return metadata
|
|
799
819
|
|
|
800
820
|
|
|
801
|
-
|
|
802
821
|
def main():
|
|
803
822
|
"""Main entryy."""
|
|
804
823
|
import sys
|
|
@@ -830,4 +849,4 @@ def main():
|
|
|
830
849
|
sys.exit()
|
|
831
850
|
|
|
832
851
|
if __name__ == "__main__":
|
|
833
|
-
main()
|
|
852
|
+
main()
|
itkdb_gtk/__init__.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: itkdb_gtk
|
|
3
|
-
Version: 0.0.16.
|
|
3
|
+
Version: 0.0.16.dev5
|
|
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
|
|
@@ -9,18 +9,18 @@ itkdb_gtk/SendShipments.py,sha256=yaKQ30fMG7bt3Zk7Rkgmla04nqfboA8zg3a-rleG9-g,13
|
|
|
9
9
|
itkdb_gtk/ShowAttachments.py,sha256=VKnmdpfyeFB5POQpEkhZXe_pm79O7CAHPT1opIYC9dM,8317
|
|
10
10
|
itkdb_gtk/ShowComments.py,sha256=Poyx3bljWEMwhB2FDvBVMSRPcqv9aowlDtbbcs8JgYw,2989
|
|
11
11
|
itkdb_gtk/ShowDefects.py,sha256=hnXZKfGshoTBJindbjrNgO6kKpVXwKO8Cu6Txn4cCXE,3329
|
|
12
|
-
itkdb_gtk/UploadModuleIV.py,sha256=
|
|
12
|
+
itkdb_gtk/UploadModuleIV.py,sha256=BksJ2Aduvb1SHVz8VSP7d7P7O1qxdaI31CQoscwidGQ,27992
|
|
13
13
|
itkdb_gtk/UploadMultipleTests.py,sha256=c0g6II0Ltoimf7uVXGvN0ZKW7y87v-h3E5faLKKMyiA,19892
|
|
14
14
|
itkdb_gtk/UploadPetalInformation.py,sha256=4d4eP6-iDI0Vygry4h7vgHbb4L3sFLGkVeCEnth7tjg,22253
|
|
15
15
|
itkdb_gtk/UploadTest.py,sha256=xqlWvQRWiFuuUPJSvOycqn1OUYwWg_VMMMNgTDM6H_U,13120
|
|
16
|
-
itkdb_gtk/__init__.py,sha256=
|
|
16
|
+
itkdb_gtk/__init__.py,sha256=XqrxLGC8QRAk4GFe074ALiYl0aGLMqeHLDZ6TqZXuWo,838
|
|
17
17
|
itkdb_gtk/dashBoard.py,sha256=7QqkpAsJ4sBolWDGyT67c1gwaht4-hWdTiIGJI870-4,5301
|
|
18
18
|
itkdb_gtk/dbGtkUtils.py,sha256=w9zj8ky2jOKtVsm8p9mhbox6_zzBTItcFQJI1RBVAgo,21750
|
|
19
19
|
itkdb_gtk/readAVSdata.py,sha256=VCoCece2tuhbd7yfaCCTXuRbGEFUUV2gCcJozQYhPRE,19379
|
|
20
20
|
itkdb_gtk/readGoogleSheet.py,sha256=cQ_pVsS_nwUh0bnXl7AP4in9kQ3Q-p8BIvXvvrTRInc,2679
|
|
21
21
|
itkdb_gtk/untrash_component.py,sha256=fZWanuPww1RLJ-Fduso4EqfLlcBsd5ryJymr1xJZEUM,756
|
|
22
|
-
itkdb_gtk-0.0.16.
|
|
23
|
-
itkdb_gtk-0.0.16.
|
|
24
|
-
itkdb_gtk-0.0.16.
|
|
25
|
-
itkdb_gtk-0.0.16.
|
|
26
|
-
itkdb_gtk-0.0.16.
|
|
22
|
+
itkdb_gtk-0.0.16.dev5.dist-info/METADATA,sha256=9wyBzDlIVkwCvRy_7a5uMbhKB1HRvKO2zIxZN_vDdGo,3081
|
|
23
|
+
itkdb_gtk-0.0.16.dev5.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
|
24
|
+
itkdb_gtk-0.0.16.dev5.dist-info/entry_points.txt,sha256=n71x6ofqLQm3n5kIwdwI_dBNFLBVbf_G6G2nxyyxwcE,333
|
|
25
|
+
itkdb_gtk-0.0.16.dev5.dist-info/top_level.txt,sha256=KVRrH4OS8ovzNR9bvADE0ABn5bNpSk987tuH0jCfkbU,10
|
|
26
|
+
itkdb_gtk-0.0.16.dev5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|