bioio-devs / bioio-base

Typing, base classes, and more for BioIO projects.
https://bioio-devs.github.io/bioio-base/
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

set_resolution_level does nothing #15

Closed toloudis closed 5 months ago

toloudis commented 5 months ago

set_resolution_level doesn't reset anything in the reader, so subsequent requests for data and shape just return the first one only. This effectively means you can't use Reader to read more than 1 level.

Expected Behavior

I should be able to loop over all resolution levels and get all the different shapes and data.

Reproduction

reader = BioImage("\\\\allen\\aics\\assay-dev\\computational\\data\\release\\nuc-morph-data-test-seg\\data_for_analysis\\baseline_colonies\\20200323_06_mid_seg\\img.ome.zarr", reader=bioio_ome_zarr.Reader)
for i in reader.resolution_levels:
    reader.set_resolution_level(i)
    print(reader.shape)