You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Run Store tests on logging
* Run store tests on wrapper
* Add read only open tests to WrapperStore
* Ignore new coverage files
* Simplify wrapper tests
* Fix __eq__ method in WrapperStore
* Implement __repr__ for WrapperStore
* Allow separate open and init kwargs
* Add open class method to LoggingStore
* Add __str__ to WrapperStore
* Add repr test for LoggingStore
* Fix __eq__ in LoggingStore
* Test getsize for stores
* Test for invalid ByteRequest
* Use stdout rather than stderr as the default logging stream
* Test default logging stream
* Add test for getsize_prefix
* Document buffer prototype parameter
* Add test for invalid modes in StorePath.open()
* Add test for contains_group
* Add tests for contains_array
* Test for invalid root type for LocalStore
* Test LocalStore.get with default prototype
* Test for invalid set buffer arguments
* Test get and set on closed stores
* Test using stores in a context manager
* Specify abstract methods for StoreTests
* Apply suggestions from code review
Co-authored-by: Davis Bennett <[email protected]>
* Lint
* Fix typing for LoggingStore
Co-authored-by: Davis Bennett <[email protected]>
* Match specific Errors in tests
Co-authored-by: Davis Bennett <[email protected]>
* Add docstring
Co-authored-by: Davis Bennett <[email protected]>
* Parametrize tests
Co-authored-by: Davis Bennett <[email protected]>
* Test for contains group/array at multiple heirarchies
Co-authored-by: Davis Bennett <[email protected]>
* Update TypeError on GpuMemoryStore
* Don't implement _is_open setter on wrapped stores
* Update reprs for LoggingStore and WrapperStore
* Test check_writeable and close for WrapperStore
* Update pull request template (#2717)
* Add release notes
* Comprehensive changelog entry
* Match error message
* Apply suggestions from code review
Co-authored-by: David Stansby <[email protected]>
* Update 2693.bugfix.rst
---------
Co-authored-by: Davis Bennett <[email protected]>
Co-authored-by: Hannes Spitz <[email protected]>
Co-authored-by: David Stansby <[email protected]>
Co-authored-by: Joe Hamman <[email protected]>
Use stdout rather than stderr as the default stream for LoggingStore
4
+
Ensure that ZipStore is open before getting or setting any values
5
+
Update equality for LoggingStore and WrapperStore such that 'other' must also be a LoggingStore or WrapperStore respectively, rather than only checking the types of the stores they wrap.
6
+
Indicate StoreTest's `test_store_repr`, `test_store_supports_writes`, `test_store_supports_partial_writes`, and `test_store_supports_listing` need to be implemented using `@abstractmethod` rather than `NotImplementedError`.
7
+
Separate instantiating and opening a store in StoreTests
8
+
Test using Store as a context manager in StoreTests
9
+
Match the errors raised by read only stores in StoreTests
10
+
Test that a ValueError is raise for invalid byte range syntax in StoreTests
11
+
Test getsize() and getsize_prefix() in StoreTests
12
+
Test the error raised for invalid buffer arguments in StoreTests
13
+
Test that data can be written to a store that's not yet open using the store.set method in StoreTests
Copy file name to clipboardExpand all lines: src/zarr/abc/store.py
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -176,10 +176,10 @@ async def get(
176
176
Parameters
177
177
----------
178
178
key : str
179
+
prototype : BufferPrototype
180
+
The prototype of the output buffer. Stores may support a default buffer prototype.
179
181
byte_range : ByteRequest, optional
180
-
181
182
ByteRequest may be one of the following. If not provided, all data associated with the key is retrieved.
182
-
183
183
- RangeByteRequest(int, int): Request a specific range of bytes in the form (start, end). The end is exclusive. If the given range is zero-length or starts after the end of the object, an error will be returned. Additionally, if the range ends after the end of the object, the entire remainder of the object will be returned. Otherwise, the exact requested range will be returned.
184
184
- OffsetByteRequest(int): Request all bytes starting from a given byte offset. This is equivalent to bytes={int}- as an HTTP header.
185
185
- SuffixByteRequest(int): Request the last int bytes. Note that here, int is the size of the request, not the byte offset. This is equivalent to bytes=-{int} as an HTTP header.
@@ -200,6 +200,8 @@ async def get_partial_values(
200
200
201
201
Parameters
202
202
----------
203
+
prototype : BufferPrototype
204
+
The prototype of the output buffer. Stores may support a default buffer prototype.
203
205
key_ranges : Iterable[tuple[str, tuple[int | None, int | None]]]
204
206
Ordered set of key, range pairs, a key may occur multiple times with different ranges
0 commit comments