-
-
Notifications
You must be signed in to change notification settings - Fork 305
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Getitems: support
meta_array
(#1131)
* Use _chunk_getitems() always * Implement getitems() always * FSStore.getitems(): accept meta_array and on_error * getitems(): handle on_error="omit" * Removed the `on_error argument` * remove redundant check * getitems(): use Sequence instead of Iterable * Typo Co-authored-by: Josh Moore <josh@openmicroscopy.org> * Introduce a contexts argument * CountingDict: impl. getitems() * added test_getitems() * Introduce Context * doc * support the new get_partial_values() method * Resolve conflict with get_partial_values() * make contexts keyword-only * Introduce ConstantMap * use typing.Mapping * test_constant_map --------- Co-authored-by: jakirkham <jakirkham@gmail.com> Co-authored-by: Josh Moore <josh@openmicroscopy.org>
- Loading branch information
1 parent
4b0705c
commit b14f15f
Showing
9 changed files
with
190 additions
and
70 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
|
||
from typing import TypedDict | ||
|
||
from numcodecs.compat import NDArrayLike | ||
|
||
|
||
class Context(TypedDict, total=False): | ||
""" A context for component specific information | ||
All keys are optional. Any component reading the context must provide | ||
a default implementation in the case a key cannot be found. | ||
Items | ||
----- | ||
meta_array : array-like, optional | ||
An array-like instance to use for determining the preferred output | ||
array type. | ||
""" | ||
meta_array: NDArrayLike |
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
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
Oops, something went wrong.