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

Provide no caching for the data #72

Merged
merged 1 commit into from
Oct 4, 2018
Merged

Provide no caching for the data #72

merged 1 commit into from
Oct 4, 2018

Conversation

ttung
Copy link
Collaborator

@ttung ttung commented Oct 4, 2018

Tiles can be read multiple times, but each time it decodes from the backend. The application is responsbile for caching it if necessary.

Depends on #71

Test plan: make -j test

@codecov-io
Copy link

codecov-io commented Oct 4, 2018

Codecov Report

❗ No coverage uploaded for pull request base (master@d07a337). Click here to learn what that means.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master      #72   +/-   ##
=========================================
  Coverage          ?   82.49%           
=========================================
  Files             ?       18           
  Lines             ?      514           
  Branches          ?        0           
=========================================
  Hits              ?      424           
  Misses            ?       90           
  Partials          ?        0
Impacted Files Coverage Δ
slicedimage/backends/_base.py 75.86% <ø> (ø)
slicedimage/io.py 94.76% <100%> (ø)
slicedimage/_tile.py 96.55% <100%> (ø)

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 d07a337...f3c140a. Read the comment docs.

Copy link
Member

@ambrosejcarr ambrosejcarr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome.

Tiles can be read multiple times, but each time it decodes from the backend.  The application is responsbile for caching it if necessary.

Test plan: make -j test
@ttung ttung changed the base branch from tonytung-reentrant-contextmanager to master October 4, 2018 22:40
@ttung ttung merged commit 32970a9 into master Oct 4, 2018
@ttung ttung deleted the tonytung-no-caching branch October 4, 2018 22:41
ttung pushed a commit that referenced this pull request Oct 10, 2018
If the tile_shape is not provided by the json file, we should infer it from the actual data.  This is a suboptimal data path since it requires a decoding step just to get the shape of the tile, so we warn about it.

Previously, this field was set by `_load()`, but that was removed in #72.

Test plan: Generate a tileset document, and then strip the shape data from the tiles.  Then read it back.  The correct tile shapes should be provided, but getting them should trigger a warning.
ttung added a commit that referenced this pull request Oct 10, 2018
If the tile_shape is not provided by the json file, we should infer it from the actual data.  This is a suboptimal data path since it requires a decoding step just to get the shape of the tile, so we warn about it.

Previously, this field was set by `_load()`, but that was removed in #72.

Test plan: Generate a tileset document, and then strip the shape data from the tiles.  Then read it back.  The correct tile shapes should be provided, but getting them should trigger a warning.
ttung pushed a commit to spacetx/starfish that referenced this pull request Oct 10, 2018
Both notebooks had datasets where the tile shapes were not consistently provided.  spacetx/slicedimage#72 broke the recording of the tile shape, and spacetx/slicedimage#73 fixes it.

Test plan: `make -j run__notebooks/py/ISS_Pipeline_-_Breast_-_1_FOV.py run__notebooks/py/assay_comparison.py`
ttung added a commit to spacetx/starfish that referenced this pull request Oct 11, 2018
Both notebooks had datasets where the tile shapes were not consistently provided.  spacetx/slicedimage#72 broke the recording of the tile shape, and spacetx/slicedimage#73 fixes it.

Test plan: `make -j run__notebooks/py/ISS_Pipeline_-_Breast_-_1_FOV.py run__notebooks/py/assay_comparison.py`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants