Skip to content

Commit 9376298

Browse files
committed
set lz4 compression levels aligned with python lz4 [0-16], as CLi accepts those values without problem.
1 parent bf32deb commit 9376298

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/xopen/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
XOPEN_DEFAULT_BZ2_COMPRESSION = 9
4444
XOPEN_DEFAULT_XZ_COMPRESSION = 6
4545
XOPEN_DEFAULT_ZST_COMPRESSION = 3
46-
XOPEN_DEFAULT_LZ4_COMPRESSION = 1
46+
XOPEN_DEFAULT_LZ4_COMPRESSION = 0
4747

4848
igzip: Optional[ModuleType]
4949
isal_zlib: Optional[ModuleType]
@@ -126,7 +126,7 @@ class _ProgramSettings:
126126
"zstd": _ProgramSettings(("zstd",), tuple(range(1, 20)), "-T"),
127127
"pigz": _ProgramSettings(("pigz", "--no-name"), tuple(range(0, 10)) + (11,), "-p"),
128128
"gzip": _ProgramSettings(("gzip", "--no-name"), tuple(range(1, 10))),
129-
"lz4": _ProgramSettings(("lz4",), tuple(range(1, 13)), "-T"),
129+
"lz4": _ProgramSettings(("lz4",), tuple(range(0, 17)), "-T"),
130130
}
131131

132132

0 commit comments

Comments
 (0)