-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
now with more moore #30
base: main
Are you sure you want to change the base?
Conversation
I've integrated this into my PR and started adding other commits there. |
very nice. thanks. |
if not objects: | ||
return None, message | ||
|
||
# TODO: replace |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replace with what?
log("%s:%s" % (key, value)) | ||
|
||
# call the main script - returns a status message | ||
message = send_to_irods(conn, script_params) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just noting that message
is a tuple, but the names in send_to_irods
would indicate that the item in position 1 (i.e. the second item) is the "message" piece. Is this on purpose?
message = "transferred" | ||
return message |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider returning images, message
? The other return points return tuples.
Also, do we want to append "transferred" to the message? It looks like the message is started on L154...
Despite many hard-codings custom to this sandbox (user, password, etc.), this script permits running the `omero transfer pack` command to create an archive for the chosen images and send them to iRODS. Simple reproducer: ``` cd server touch a.fake IMAGE=$(omero import a.fake) omero script upload --official Send_to_iRODS.py omero script launch /Send_to_iRODS.py IDs=${IMAGE##Image:} ```` A file named `transfer.tar` will now exist in the iRODS zone.
one commit atop #29