Skip to content
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

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open

now with more moore #30

wants to merge 10 commits into from

Conversation

trel
Copy link
Contributor

@trel trel commented Jan 12, 2024

one commit atop #29

@joshmoore
Copy link

I've integrated this into my PR and started adding other commits there.

@trel
Copy link
Contributor Author

trel commented Feb 12, 2024

very nice. thanks.

if not objects:
return None, message

# TODO: replace
Copy link
Contributor

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)
Copy link
Contributor

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?

Comment on lines +177 to +178
message = "transferred"
return message
Copy link
Contributor

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...

trel and others added 10 commits October 17, 2024 21:15
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants