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

Add function to check resolution levels and their shapes #19

Closed
vianamp opened this issue Apr 27, 2024 · 0 comments · Fixed by #23, bioio-devs/bioio#52 or bioio-devs/bioio-base#18
Closed
Labels
enhancement New feature or request

Comments

@vianamp
Copy link

vianamp commented Apr 27, 2024

See conversation here. Add a function like this

    def list_zarr_levels_and_dims(file_path:str):
        reader = BioImage(file_path, reader=bioio_ome_zarr.Reader)
        levels = reader.resolution_levels
        print(f"Found ZAR file with {len(levels)} resolution levels.")
        for lvl in levels:
            reader.set_resolution_level(lvl)
            print(f"\tLevel {lvl} shape: {reader.shape}")
        return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
1 participant