lossless

numcodecs_safeguards.lossless

Helper classes for lossless encoding for the SafeguardedCodec.

Classes:

  • Lossless

    Configuration for the lossless encoding used by the

Lossless dataclass

Lossless(
    *,
    for_codec: None | dict[str, JSON] | Codec = None,
    for_corrections: dict[str, JSON]
    | Codec = _default_lossless_for_corrections(),
)

Configuration for the lossless encoding used by the SafeguardedCodec to encode the wrapped codec's encoded data and any safeguards-computed corrections.

for_codec class-attribute instance-attribute

for_codec: None | dict[str, JSON] | Codec = None

Lossless codec (configuration) that is applied to wrapped codec's encoding.

By default, no further lossless compression is applied.

for_corrections class-attribute instance-attribute

for_corrections: dict[str, JSON] | Codec = field(
    default_factory=_default_lossless_for_corrections
)

Lossless codec (configuration) that is applied to the safeguards-computed corrections.

The default is considered an implementation detail.