-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add zstd compression tests
- Loading branch information
Showing
4 changed files
with
24 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Run this with a newer version of ROOT | ||
# Otherwise zstd isn't available and the | ||
# 505 will fall back to zlib | ||
from ROOT import TFile, TTree | ||
from array import array | ||
|
||
f = TFile('tree_with_int_array_zstd.root', 'recreate', "filename", 505) | ||
t = TTree('t1', '') | ||
|
||
n = array('i', [0]) | ||
t.Branch('a', n, 'a/I') | ||
|
||
for i in range(100): | ||
n[0] = i | ||
t.Fill() | ||
|
||
f.Write() | ||
f.Close() |