-
Notifications
You must be signed in to change notification settings - Fork 16
Fix parade prep notes #89
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
base: master
Are you sure you want to change the base?
Conversation
|
This pull request has been mentioned on Image.sc Forum. There might be relevant details there: https://forum.image.sc/t/omero-workshop-data-preparation-idr0021/54100/7 |
|
Hey Will - I can also confirm that your version of channel_minmax_to_table.py worked for me without any issues too. Thanks again, |
|
Thanks @stephenogg - I didn't delete the |
|
I have actually a question Re: |
|
@pwalczysko: have you tested a 2-step workflow creating a session and re-using it? Otherwise, I assume the script might need to be refactored to add optional login arguments and pass them to - with cli_login() as cli:
+ with cli_login(login_args) as cli:Is this a new feature as I do not see any non-default group support in the previous version of the script? |
Previously, I would have used the 2-step workflow as suggested by yourself above, thanks. It was not clear to me that the 2-step workflow is still an option, even with the |
|
Understood. |
|
Both scripts work as described, including the workaround suggested by @sbesson in #89 (comment), thanks Will read the README now |
|
|
||
| print("table closed...") | ||
| orig_file = table.getOriginalFile() | ||
| table.close() |
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.
so the table could now never be closed if an error is thrown during the save step below
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.
It was also possible before that it didn't get closed if an exception was thrown between table creation and closing.
But yes, a try/finally would be safer. I'll add that...
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.
Fixed in 9632c0d
|
Line 54 of the
the user does not need to edit anything (indeed, there is not much to edit) as the script requires the ID as a parameter on input. |
|
Retested the script |
|
Two reformulations suggestions Otherwise ready to merge fmpov |
Co-authored-by: pwalczysko <[email protected]>
|
Thanks @pwalczysko Those fixes in now. |
|
Sorry, when checking your fixes, which are okay, found out that the line
in this paragraph has the same problem as the one you just fixed - the script is not to be edited, as the IDs are passed as params. Cannot make a direct commit suggestion, as this is a line which you did not change in the PR. |
|
LGTM |
See https://forum.image.sc/t/omero-workshop-data-preparation-idr0021/54100/5
The
idr0021-data-prep.mddocument is quite out of date and the workflow has been simplified by more recent scripts.The
idr0021.groovyscript now does everything in one step, although it doesn't add Map Annotations, but I don't think these are needed for the parade workshop?This updates the workflow and updates a couple of scripts involved to use the
cli logininstead of entering login via script arguments.To test the scripts, follow the 2 commands at the end, using the Plate ID from the first as input to the second: