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

CZI: Pad scene number and switch to 1 indexed #3610

Merged
merged 1 commit into from Oct 22, 2020

Conversation

dgault
Copy link
Member

@dgault dgault commented Aug 20, 2020

This request was raised in forum thread https://forum.image.sc/t/scene-numbering-in-omero-from-multi-scene-czi-files/41794
The PR switches the image name which is Scene #0, Scene #⁠1 etc to be 1 indexed. It also adds zero padding when necessary.

As far as I can find we only have 2 datasets in the repo which use this scene number and unfortunately both only have a single digit number of scenes.

To test you can use either of the below:

zeiss-czi/zeiss/zen-2012/Multiscene/Mouse-kidney-3-scene_VivaTome_1chZS.czi
zeiss-czi/qa-27169/226-0903_wt_DAPI_0_DsRED_tdT_0_CB-Scene-1-ScanRegion0.czi

The updated value can be seen when viewing the Image Name in the OME-XML using (note noflat must be set) :
showinf -noflat -nopix -omexml path/to/file.czi

@dgault dgault added this to the 6.6.0 milestone Aug 20, 2020
@imagesc-bot
Copy link

This pull request has been mentioned on Image.sc Forum. There might be relevant details there:

https://forum.image.sc/t/scene-numbering-in-omero-from-multi-scene-czi-files/41794/2

@dgault
Copy link
Member Author

dgault commented Aug 24, 2020

An additional sample file is now available in QA-29487. This file should also be tested and configured as part of this PR.

Copy link
Member

@sbesson sbesson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code change is absolutely straightforward and makes sens

Loading the sample file without this PR produces

Screenshot 2020-09-07 at 11 44 53

With this PR included, all image names are padded with zeros as expected

Screenshot 2020-09-07 at 11 44 55

The only downside of this change is whether we anticipate the padding/indexing change would lead to breakages in script parsing the name. In this case, the naming behavior could optionally be controlled via options.

Otherwise, this looks good to merge once the sample file has been configured and added to the daily non-regression tests.

@dgault
Copy link
Member Author

dgault commented Oct 22, 2020

Builds and tests continue to pass with the latest sample file included. Merging for 6.6.0

@dgault dgault merged commit 16c9c4b into ome:develop Oct 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants