Fix series assignment for multiseries files #46
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I've been working with lightsheet multiseries .czi files and tried to stitch with the "Positions from file" mode, but the resulting tiles all came from the same series. The fix for me was to set the series on value when building the ImporterOptions.
I also made a small simplification to use the series index directly when creating the ImageCollectionElement objects, though the change doesn't appear to be necessary.
I tested the changes in headless mode with a multiseries file generated by Zeiss Zen 2014 after dual illumination fusion, both with order "Defined by TileConfiguration" (including 3D and 2D subsets, with TileConfiguration.txt built separately beforehand) and "Defined by image metadata" (though my multiseries file does not appear to give tile offsets in the metadata). It'd be helpful to test with other multiseries files from other systems.