spacetx / slicedimage

MIT License
7 stars 3 forks source link

Add __repr__ to TileSet #74

Closed ttung closed 6 years ago

ttung commented 6 years ago

Obtain the tile shape through:

  1. read the tile's declared shape without forcing a read & decode of the tile data.
  2. read the tileset's default tile shape.
  3. read the tile's shape through a read & decode.

Print the range of tile sizes, if it's a variety of values, or a scalar if all the tiles are the same size.

This is a continuation of #57.

Test plan:

<starfish.Experiment (FOVs=1)>
{
fov_001: <starfish.FieldOfView>
  Primary Image: <starfish.ImageStack (r: 4, c: 4, z: 1, y: 1044, x: 1390)>
  Auxiliary Images:
    nuclei: <slicedimage.TileSet (r: 1, c: 1, x: 1044, y: 1390)>
    dots: <slicedimage.TileSet (r: 1, c: 1, x: 1044, y: 1390)>
}
codecov-io commented 6 years ago

Codecov Report

Merging #74 into master will decrease coverage by 3.02%. The diff coverage is 4.76%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master     #74      +/-   ##
=========================================
- Coverage   82.72%   79.7%   -3.03%     
=========================================
  Files          18      18              
  Lines         521     542      +21     
=========================================
+ Hits          431     432       +1     
- Misses         90     110      +20
Impacted Files Coverage Δ
slicedimage/_tileset.py 45% <4.76%> (-44.48%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 8fc5756...c73636c. Read the comment docs.