Skip to content

Commit

Permalink
wrappers
Browse files Browse the repository at this point in the history
  • Loading branch information
crusaderky committed Sep 20, 2024
1 parent b529ca2 commit fadc78e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion versioned_hdf5/tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -2052,7 +2052,7 @@ def test_stage_version_log_stats(tmp_path, caplog):
in caplog.records[-2].getMessage()
)
assert (
"baz: New chunks written: 1; Number of chunks reused: 14"
"baz: New chunks written: 1; Number of chunks reused: 4"
in caplog.records[-1].getMessage()
)

Expand Down
4 changes: 1 addition & 3 deletions versioned_hdf5/wrappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1180,9 +1180,7 @@ def build_data_dict(
) -> dict[Tuple, Slice | np.ndarray]:
return {
Tuple(*k): v
for k, v in self.staged_changes.changes(
full_chunks=False, load_base=load_base
)
for k, v in self.staged_changes.changes(load_base=load_base)
if v is not None
}

Expand Down

0 comments on commit fadc78e

Please sign in to comment.