lr_fuse for stitched data with each path in a separate file - #64
lr_fuse for stitched data with each path in a separate file#64neuromantic99 wants to merge 9 commits into
Conversation
Works now with two separate h5 files, the left and right path of previously stitched data
for more information, see https://pre-commit.ci
| image_mosaic.tiles.remove(right_tile) | ||
| image_mosaic.tile_names.remove(right_tile.name) |
There was a problem hiding this comment.
Curious that saving outside of the function fails. I wonder if it has something to with .h5 files being closed when one of the ImageMosaic objects is garbage collected thus closing the .h5 file.
|
This looks great and would be a welcome addition! We'll have to make sure we support two workflows simultaneously. Some users will have an untiled acquisition form multiple illuminations in one h5 file, whereas others will have the two illuminations in separate files. We could either get clever with the function arguments, or create two separate functions entirely. Alternatively, perhaps there should a fuse |
Hi Igor, That's great, happy to work on it. The Interestingly this error does not throw when I run the code in my vscode debugger, which I believe is forced single threaded - though this is hideously slow so not a viable solution I think |
|
The error not being thrown during debugging make a bit of sense, the debugger is keeping a reference to the object open preventing it from being GCd. I would suggest moving the current implementation to a method in The new implementation can stay in |
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
Have implemented the above suggestions, haven't added unit or integration tests yet or updated the documentation, lmk if necessary. |
Description
What is this PR
Why is this PR needed?
Currently lr_fuse expects a single ImageMosaic and does not save the result. When the left and right paths have multiple tiles in each (that have been stitched post-hoc), the left and right data should be in separate .h5 files.
What does this PR do?
Changes the functionality in lr_fuse to work with two .h5 files (one for each illumination side). Moves existing functionality (whereby both illumination sides are in a single file) to ImageMosaic.
Checklist: