uproot.compression.Compression — Uproot documentation

# uproot.compression.Compression

Defined in uproot.compression on line 18.

class uproot.compression.Compression(level)

  Abstract class for objects that describe compression algorithms and levels.

## from_code

classmethod Compression.from_code(code)

  Constructs a uproot.compression.Compression from a raw `fCompress` integer.

## from_code_pair

classmethod Compression.from_code_pair(algorithm, level)

  Constructs a uproot.compression.Compression from a pair of integers representing `algorithm` and `level`.

## code

Compression.code

  This uproot.compression.Compression as a raw `fCompress` integer.

## code_pair

Compression.code_pair

  This uproot.compression.Compression as a 2-tuple of integers representing algorithm and level.

## level

Compression.level

  0 is uncompressed, 1 is minimally compressed, and higher levels increase compression. (See specific algorithms for maximum values.)

  Type:

    The compression level