-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add map/reduce methods to ImageStack (#1539)
This is syntactic sugar to simplify single map / reduce operations. Right now, we would need to instantiate the filter and then run it against the stack, e.g., ``` max_projector = Filter.Reduce((Axes.CH, Axes.ROUND, Axes.ZPLANE)) max_projected = max_projector.run(stack) ``` With this, it simplifies to: ``` max_projected = stack.reduce((Axes.CH, Axes.ROUND, Axes.ZPLANE), "max") ``` Test plan: Converted imagestack/test/test_max_proj.py to use this idiom. Depends on #1540
- Loading branch information
Tony Tung
authored
Oct 10, 2019
1 parent
c9957ea
commit a958db6
Showing
3 changed files
with
54 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters