Repository navigation
SmartSPIM: read Z<z>_Ch<k>.tif slices and a single channel folder without _Ch<n> - #39
Merged
Merged
Conversation
…hout _Ch<n> Port of NDR-matlab 147073c. Some SmartSPIM software versions write a single-channel acquisition with a channel folder named Ex_<laser>_Em_<filter> (no _Ch<n>) and stitched slices named Z<z*10>_Ch<k>.tif, which were not recognized. - readAllChannelsInfo accepts Z<z*10>_Ch<k>.tif(f). - listChannels / isSmartSPIM accept a lone channel folder without _Ch<n> (filterChannel NaN; numTiles counted by laser and filter). Working folders such as _MIP and _stitched are still not channels. - Several channel folders when any lacks _Ch<n> raise ValueError rather than guess which _ch<k> slices are whose. - Bridge: isSmartSPIM, listChannels and readAllChannelsInfo synced to 147073c. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01E59gJ2kMfx16TfRmzo2SnL
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01E59gJ2kMfx16TfRmzo2SnL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Port of the NDR-matlab change (commit 147073c on its branch of the same name). Some SmartSPIM software versions write a single-channel acquisition with a channel folder named
Ex_<laser>_Em_<filter>(no_Ch<n>) and stitched slices namedZ<z*10>_Ch<k>.tif. NDR did not recognize them.Changes
readAllChannelsInfoacceptsZ<z*10>_Ch<k>.tif(f)slice names. Matching ignores case.listChannelsandisSmartSPIMaccept a lone channel folder without_Ch<n>:filterChannelis NaN;numTilesis counted frommetadata.json's tiles with its laser and filter;_MIPand_stitchedstill aren't taken for channels._ch<k>its slices carry._Ch<n>raiseValueErrorrather than guess which_ch<k>slices belong to which channel. MATLAB raisesndr:format:smartspim:listChannels:UnnumberedChannels.isSmartSPIM,listChannelsandreadAllChannelsInfosynced to NDR-matlab 147073c, with notes.Tests
test_single_channel_without_ch_numberandtest_several_channels_without_ch_number_are_refusedintests/test_smartspim_all_channels.pymirror the MATLAB tests. Both pass.This should merge after the NDR-matlab PR: the bridge hashes name its commit.
Generated by Claude Code