numcodecs-combinators 0.2.0__tar.gz → 0.2.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {numcodecs_combinators-0.2.0 → numcodecs_combinators-0.2.1}/PKG-INFO +1 -1
- {numcodecs_combinators-0.2.0 → numcodecs_combinators-0.2.1}/pyproject.toml +1 -1
- {numcodecs_combinators-0.2.0 → numcodecs_combinators-0.2.1}/src/numcodecs_combinators/stack.py +3 -0
- {numcodecs_combinators-0.2.0 → numcodecs_combinators-0.2.1}/.github/workflows/ci.yml +0 -0
- {numcodecs_combinators-0.2.0 → numcodecs_combinators-0.2.1}/.github/workflows/publish.yml +0 -0
- {numcodecs_combinators-0.2.0 → numcodecs_combinators-0.2.1}/.gitignore +0 -0
- {numcodecs_combinators-0.2.0 → numcodecs_combinators-0.2.1}/.python-version +0 -0
- {numcodecs_combinators-0.2.0 → numcodecs_combinators-0.2.1}/.readthedocs.yaml +0 -0
- {numcodecs_combinators-0.2.0 → numcodecs_combinators-0.2.1}/LICENSE +0 -0
- {numcodecs_combinators-0.2.0 → numcodecs_combinators-0.2.1}/README.md +0 -0
- {numcodecs_combinators-0.2.0 → numcodecs_combinators-0.2.1}/docs/index.md +0 -0
- {numcodecs_combinators-0.2.0 → numcodecs_combinators-0.2.1}/docs/requirements.txt +0 -0
- {numcodecs_combinators-0.2.0 → numcodecs_combinators-0.2.1}/mkdocs.yml +0 -0
- {numcodecs_combinators-0.2.0 → numcodecs_combinators-0.2.1}/src/numcodecs_combinators/__init__.py +0 -0
- {numcodecs_combinators-0.2.0 → numcodecs_combinators-0.2.1}/src/numcodecs_combinators/abc.py +0 -0
- {numcodecs_combinators-0.2.0 → numcodecs_combinators-0.2.1}/src/numcodecs_combinators/py.typed +0 -0
- {numcodecs_combinators-0.2.0 → numcodecs_combinators-0.2.1}/tests/test_stack.py +0 -0
{numcodecs_combinators-0.2.0 → numcodecs_combinators-0.2.1}/src/numcodecs_combinators/stack.py
RENAMED
|
@@ -151,6 +151,9 @@ class CodecStack(Codec, CodecCombinatorMixin, tuple[Codec]):
|
|
|
151
151
|
out = np.empty(shape=shape, dtype=dtype)
|
|
152
152
|
decoded = codec.decode(decoded, out).reshape(shape)
|
|
153
153
|
|
|
154
|
+
if isinstance(decoded, type(buf)):
|
|
155
|
+
return decoded
|
|
156
|
+
|
|
154
157
|
return type(buf)(decoded) # type: ignore
|
|
155
158
|
|
|
156
159
|
def get_config(self) -> dict:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{numcodecs_combinators-0.2.0 → numcodecs_combinators-0.2.1}/src/numcodecs_combinators/__init__.py
RENAMED
|
File without changes
|
{numcodecs_combinators-0.2.0 → numcodecs_combinators-0.2.1}/src/numcodecs_combinators/abc.py
RENAMED
|
File without changes
|
{numcodecs_combinators-0.2.0 → numcodecs_combinators-0.2.1}/src/numcodecs_combinators/py.typed
RENAMED
|
File without changes
|
|
File without changes
|