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 group_by for tilefetcher-based ImageStack construction #1796

Merged
merged 1 commit into from
Feb 7, 2020

Conversation

ttung
Copy link
Collaborator

@ttung ttung commented Feb 6, 2020

When we construct an ImageStack from a tilefetcher, we now allow accept a group_by parameter which controls how we load the data. If an axis is in the group_by, then we load all the data for any given value for that axis before moving on to another value for that axis.

For instance, if Axes.ROUND is in group_by, then we will load all the data for round=0 before we load the data for round=1.

Test plan: Added tests to verify that the loader works with a variety of group_bys. Dan Goodwin's 3D data loads in 100seconds now instead of 10 minutes.

When we construct an ImageStack from a tilefetcher, we now allow accept a `group_by` parameter which controls how we load the data.  If an axis is in the `group_by`, then we load all the data for any given value for that axis before moving on to another value for that axis.

For instance, if Axes.ROUND is in `group_by`, then we will load all the data for round=0 before we load the data for round=1.

Test plan: Added tests to verify that the loader works with a variety of `group_by`s.  Dan Goodwin's 3D data loads in 100seconds now instead of 10 minutes.
@ttung ttung requested a review from shanaxel42 February 6, 2020 20:48
@codecov-io
Copy link

Codecov Report

Merging #1796 into master will decrease coverage by 0.06%.
The diff coverage is 96.87%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1796      +/-   ##
==========================================
- Coverage   89.94%   89.87%   -0.07%     
==========================================
  Files         252      252              
  Lines        9307     9327      +20     
==========================================
+ Hits         8371     8383      +12     
- Misses        936      944       +8
Impacted Files Coverage Δ
...fish/core/imagestack/parser/tilefetcher/_parser.py 90.32% <100%> (-0.16%) ⬇️
starfish/core/imagestack/parser/numpy/__init__.py 88.4% <100%> (+0.52%) ⬆️
starfish/core/imagestack/parser/crop.py 90.4% <100%> (+0.23%) ⬆️
...fish/core/imagestack/test/test_from_tilefetcher.py 100% <100%> (ø) ⬆️
starfish/core/imagestack/parser/tileset/_parser.py 84.14% <100%> (+0.6%) ⬆️
starfish/core/imagestack/imagestack.py 93.24% <100%> (+0.13%) ⬆️
starfish/core/imagestack/parser/_tiledata.py 68.57% <75%> (-0.18%) ⬇️
...tarfish/core/test/test_multiprocessing_workflow.py 94.87% <0%> (-5.13%) ⬇️
starfish/core/_version.py 44.6% <0%> (-1.8%) ⬇️

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 5f5abaf...03933da. Read the comment docs.

@ttung ttung merged commit bc60209 into master Feb 7, 2020
@ttung ttung deleted the tonytung-group-by branch February 7, 2020 00:58
@ttung
Copy link
Collaborator Author

ttung commented Feb 7, 2020

@mattcai fyi this just landed!

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.

3 participants