Commit d8f458a4 authored by Staiger, Christine's avatar Staiger, Christine
Browse files

Adding more metadata in ELN.

parent ca924da7
......@@ -187,7 +187,7 @@ class elabUpload(QWidget, Ui_tabELNData):
print("ELN DATA UPLOAD experiment: \n"+expUrl)
#get upload total size to inform user
size = round(getSize([path])/1024**2)
size = getSize([path])
#if user specifies a different path than standard home
if self.elnIrodsPath.text() == '/zone/home/user':
collPath = '/'+self.ic.session.zone+'/home/'+self.ic.session.username+'/'+subcoll
......@@ -198,7 +198,7 @@ class elabUpload(QWidget, Ui_tabELNData):
buttonReply = QMessageBox.question(
self.elnUploadButton,
'Message Box', "Upload\n" + path + '\n'+str(size)+'MB',
'Message Box', "Upload\n" + path + '\n'+str(size)+' Bytes',
QMessageBox.Yes | QMessageBox.No, QMessageBox.No)
upload = buttonReply == QMessageBox.Yes
if upload:
......@@ -268,7 +268,10 @@ class Worker(QObject):
logging.info("ElabUpload data upload and annotation worker: "+repr(e))
print(repr(e))
self.annotateElab({ "file size": str(self.size) + "MB" })
self.annotateElab({ "Data size": str(self.size) + "Bytes",
"iRODS path": self.coll.path,
"iRODS server": self.ic.session.host,
"iRODS user": self.ic.session.username})
def annotateElab(self, metadata):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment