File: bitshuffle.py

package info (click to toggle)
hdf5-filter-plugin 0.0~git20221111.49e3b65-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,848 kB
  • sloc: ansic: 14,374; sh: 11,445; cpp: 1,463; makefile: 100; python: 19; xml: 6
file content (10 lines) | stat: -rw-r--r-- 298 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
import h5py


f = h5py.File("bitshuffle_file.h5","w")
filter_id = 32008
d1 = f.create_dataset("with_lz4",(100,100),
                      compression=filter_id,
                      compression_opts=(0,2))
d2 = f.create_dataset("without_lz4",(100,100),
                      compression=filter_id)