Skip to content

Commit

Permalink
Merge pull request #456 from jsignell/inline-test
Browse files Browse the repository at this point in the history
Add test of inline_threshold
  • Loading branch information
martindurant authored May 10, 2024
2 parents 1d77a1a + 963a26c commit 801270f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Binary file added kerchunk/tests/air.nc
Binary file not shown.
9 changes: 9 additions & 0 deletions kerchunk/tests/test_hdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,3 +322,12 @@ def test_embed():
"0.004609216572327277",
"0.01298182345556785",
]


def test_inline_threshold():
fn = osp.join(here, "air.nc")
inline_0 = kerchunk.hdf.SingleHdf5ToZarr(fn, inline_threshold=0).translate()
inline_1_million = kerchunk.hdf.SingleHdf5ToZarr(
fn, inline_threshold=1e9
).translate()
assert inline_0 != inline_1_million

0 comments on commit 801270f

Please sign in to comment.