Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
from numcodecs.lz4 import LZ4
register_codec(LZ4)
except ImportError: # pragma: no cover
pass
from numcodecs.astype import AsType
register_codec(AsType)
from numcodecs.delta import Delta
register_codec(Delta)
from numcodecs.quantize import Quantize
register_codec(Quantize)
from numcodecs.fixedscaleoffset import FixedScaleOffset
register_codec(FixedScaleOffset)
from numcodecs.packbits import PackBits
register_codec(PackBits)
from numcodecs.categorize import Categorize
register_codec(Categorize)
from numcodecs.pickles import Pickle
register_codec(Pickle)
try:
from numcodecs.msgpacks import MsgPack
register_codec(MsgPack)
except ImportError: # pragma: no cover
pass
from numcodecs.categorize import Categorize
register_codec(Categorize)
from numcodecs.pickles import Pickle
register_codec(Pickle)
try:
from numcodecs.msgpacks import MsgPack
register_codec(MsgPack)
except ImportError: # pragma: no cover
pass
from numcodecs.checksum32 import CRC32, Adler32
register_codec(CRC32)
register_codec(Adler32)
from numcodecs.json import JSON
register_codec(JSON)
try:
from numcodecs import vlen
from numcodecs.vlen import VLenUTF8, VLenBytes, VLenArray
register_codec(VLenUTF8)
register_codec(VLenBytes)
register_codec(VLenArray)
except ImportError: # pragma: no cover
pass
`_.
"""
import multiprocessing
import atexit
from numcodecs.version import version as __version__
from numcodecs.registry import get_codec, register_codec
from numcodecs.zlib import Zlib
register_codec(Zlib)
from numcodecs.gzip import GZip
register_codec(GZip)
from numcodecs.bz2 import BZ2
register_codec(BZ2)
try:
from numcodecs.lzma import LZMA
register_codec(LZMA)
except ImportError: # pragma: no cover
pass
try:
from numcodecs import blosc
from numcodecs.blosc import Blosc
register_codec(Blosc)
# initialize blosc
try:
pass
from numcodecs.astype import AsType
register_codec(AsType)
from numcodecs.delta import Delta
register_codec(Delta)
from numcodecs.quantize import Quantize
register_codec(Quantize)
from numcodecs.fixedscaleoffset import FixedScaleOffset
register_codec(FixedScaleOffset)
from numcodecs.packbits import PackBits
register_codec(PackBits)
from numcodecs.categorize import Categorize
register_codec(Categorize)
from numcodecs.pickles import Pickle
register_codec(Pickle)
try:
from numcodecs.msgpacks import MsgPack
register_codec(MsgPack)
except ImportError: # pragma: no cover
pass
from numcodecs.checksum32 import CRC32, Adler32
register_codec(CRC32)
register_codec(Adler32)
register_codec(AsType)
from numcodecs.delta import Delta
register_codec(Delta)
from numcodecs.quantize import Quantize
register_codec(Quantize)
from numcodecs.fixedscaleoffset import FixedScaleOffset
register_codec(FixedScaleOffset)
from numcodecs.packbits import PackBits
register_codec(PackBits)
from numcodecs.categorize import Categorize
register_codec(Categorize)
from numcodecs.pickles import Pickle
register_codec(Pickle)
try:
from numcodecs.msgpacks import MsgPack
register_codec(MsgPack)
except ImportError: # pragma: no cover
pass
from numcodecs.checksum32 import CRC32, Adler32
register_codec(CRC32)
register_codec(Adler32)
from numcodecs.json import JSON
register_codec(JSON)
from numcodecs.fixedscaleoffset import FixedScaleOffset
register_codec(FixedScaleOffset)
from numcodecs.packbits import PackBits
register_codec(PackBits)
from numcodecs.categorize import Categorize
register_codec(Categorize)
from numcodecs.pickles import Pickle
register_codec(Pickle)
try:
from numcodecs.msgpacks import MsgPack
register_codec(MsgPack)
except ImportError: # pragma: no cover
pass
from numcodecs.checksum32 import CRC32, Adler32
register_codec(CRC32)
register_codec(Adler32)
from numcodecs.json import JSON
register_codec(JSON)
try:
from numcodecs import vlen
from numcodecs.vlen import VLenUTF8, VLenBytes, VLenArray
register_codec(VLenUTF8)
register_codec(VLenBytes)
register_codec(VLenArray)
register_codec(Delta)
from numcodecs.quantize import Quantize
register_codec(Quantize)
from numcodecs.fixedscaleoffset import FixedScaleOffset
register_codec(FixedScaleOffset)
from numcodecs.packbits import PackBits
register_codec(PackBits)
from numcodecs.categorize import Categorize
register_codec(Categorize)
from numcodecs.pickles import Pickle
register_codec(Pickle)
try:
from numcodecs.msgpacks import MsgPack
register_codec(MsgPack)
except ImportError: # pragma: no cover
pass
from numcodecs.checksum32 import CRC32, Adler32
register_codec(CRC32)
register_codec(Adler32)
from numcodecs.json import JSON
register_codec(JSON)
try:
from numcodecs import vlen
from numcodecs.msgpacks import MsgPack
register_codec(MsgPack)
except ImportError: # pragma: no cover
pass
from numcodecs.checksum32 import CRC32, Adler32
register_codec(CRC32)
register_codec(Adler32)
from numcodecs.json import JSON
register_codec(JSON)
try:
from numcodecs import vlen
from numcodecs.vlen import VLenUTF8, VLenBytes, VLenArray
register_codec(VLenUTF8)
register_codec(VLenBytes)
register_codec(VLenArray)
except ImportError: # pragma: no cover
pass
except ImportError: # pragma: no cover
pass
from numcodecs.checksum32 import CRC32, Adler32
register_codec(CRC32)
register_codec(Adler32)
from numcodecs.json import JSON
register_codec(JSON)
try:
from numcodecs import vlen
from numcodecs.vlen import VLenUTF8, VLenBytes, VLenArray
register_codec(VLenUTF8)
register_codec(VLenBytes)
register_codec(VLenArray)
except ImportError: # pragma: no cover
pass
register_codec(PackBits)
from numcodecs.categorize import Categorize
register_codec(Categorize)
from numcodecs.pickles import Pickle
register_codec(Pickle)
try:
from numcodecs.msgpacks import MsgPack
register_codec(MsgPack)
except ImportError: # pragma: no cover
pass
from numcodecs.checksum32 import CRC32, Adler32
register_codec(CRC32)
register_codec(Adler32)
from numcodecs.json import JSON
register_codec(JSON)
try:
from numcodecs import vlen
from numcodecs.vlen import VLenUTF8, VLenBytes, VLenArray
register_codec(VLenUTF8)
register_codec(VLenBytes)
register_codec(VLenArray)
except ImportError: # pragma: no cover
pass