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
Unicode scripts 12571 #3833
Unicode scripts 12571 #3833
Conversation
|
Dataset To Plate.py:
|
Also noticed the Thumbnail dialog's |
Commits coming with the hope of being in today's rebuild. |
Commit ome/omero-scripts@7a0cf40 fixes Dataset_To_Plate issue above at ome/omero-scripts#101. |
Split view, Thumbnail and combine scripts work.
Export as ome-tiff fails with imagename
|
cc: @jburel -- see https://github.com/openmicroscopy/openmicroscopy/blob/develop/components/blitz/src/ome/services/blitz/impl/ExporterI.java#L576 for the export issue. |
NB: If this is intended for 5.1.2, we can't expect to have everything fixed at this point. We will have to either pick our battles, or push for a more extensive review for 5.1.3. |
I have a fix for the first issue there. The second is nothing to do with unicode I think. Probably due to exporting an image with channels shared with other images - related to https://trac.openmicroscopy.org.uk/ome/ticket/11532? |
will-moore/scripts@fbe427e fixes the Dataset_To_Plate issue above
|
Also found a bug with "Export as TIFF/PNG/JPEG" fixed in the commit above. |
Closing & re-opening to bump travis status since this was marked as "failed" as of yesterday evening, meaning I had to cancel https://ci.openmicroscopy.org/job/OMERO-5.1-merge-daily/483/ |
Tested using trout merge user-3 read-only-1 with test string !"#$%&'()* added to names etc. Channel Offsets.py
Combine Images.py
Dataset To Plate.py
Images From ROIs.py
Create Thumbnail Figure
Create Split View Figure
No errors in these tests. I think I have covered all the points in thePR but difficult to tell. |
Sorry missed adding unicode channel name on first test - when tried to use test string as channel name in script window got following error:
|
@gusferguson You need to test with non-ascii characters (e.g. €, accented characters, arabic/chinese, etc). |
@manics - sorry this is not stated in the PR - it says unicode. |
Looks fine to me, one possible issue (mentioned offline). |
Thanks for all the testing, @gusferguson & @manics. My reading of this is that many of the conditions that were failing are now passing, even if some are still remaining. Since I think it's less likely that a user will have unicode in their channel name, I'd like to go ahead and get this in to help users with other locales, and follow-up in 5.1.3 (see https://trello.com/c/eLd8m6rE/524-script-unicode et al). Likely a thorough testing effort will be needed both in robot and the CLI tests to pick up all of these cases. |
NB: the other issue seen was:
AND it goes away with |
Summary of remaining issues:
but this is also true on Octopus, so not caused by this PR. Also, display of unicode Tag in "Batch Annotate" panel gives error. These issues added to https://trello.com/c/eLd8m6rE/524-script-unicode Bug from @gusferguson is not unicode related but due to particular images and inputs of Combine_Images script:
|
This handles unicode script param values when running scripts.
To test, need to check that all parameters passed to scripts can handle unicode strings and different scripts handle these values correctly.
E.g String parameters, Lists with unicode values and Maps with unicode values.
Set up:
Scripts:
Corresponding scripts PR: ome/omero-scripts#101 has unicode handling to Split_View_Figure and Thumbnail_Figure as well as other small fixes.