File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 11from typing import Literal , Optional
22
3- import numcodecs
4- import numcodecs .abc
3+ from numcodecs .abc import Codec
54from numcodecs .compat import ensure_contiguous_ndarray
65
76try :
1312DEFAULT_MAX_PAGE_N = 262144
1413
1514
16- class PCodec (numcodecs . abc . Codec ):
15+ class PCodec (Codec ):
1716 """
1817 PCodec (or pco, pronounced "pico") losslessly compresses and decompresses
1918 numerical sequences with high compression ratio and fast speed.
Original file line number Diff line number Diff line change 33import numpy as np
44import pytest
55
6- from numcodecs .checksum32 import CRC32 , CRC32C , Adler32
6+ try :
7+ from numcodecs .checksum32 import CRC32 , CRC32C , Adler32
8+ except ImportError : # pragma: no cover
9+ pytest .skip ("numcodecs.checksum32 not available" , allow_module_level = True )
10+
711from numcodecs .tests .common import (
812 check_backwards_compatibility ,
913 check_config ,
You can’t perform that action at this time.
0 commit comments