Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/deshaw/versioned-hdf5
/ functions
Functions
983 in github.com/deshaw/versioned-hdf5
⨍
Functions
983
◇
Types & classes
87
↳
Endpoints
6
Function
test_array_protocol
()
tests/test_typing.py:57
Function
test_array_protocol_from_array
Test that from_array() accepts anything that implements ArrayProtocol and that it does not coerce it to a numpy array.
tests/test_staged_changes.py:222
Function
test_array_protocol_from_slabs
Test that the base slabs can be anything that implements ArrayProtocol and that they are not coerced to a numpy array.
tests/test_staged_changes.py:240
Function
test_array_protocol_h5_astypeview
Test that h5py AsTypeView is an ArrayProtocol
tests/test_typing.py:83
Function
test_array_protocol_h5_astypeview_compat
Test that h5py_astype() returns an ArrayProtocol, also on older h5py versions. TODO delete this test when dropping support for h5py <3.13.
tests/test_typing.py:92
Function
test_array_protocol_h5_dataset
Test that h5py.Dataset is a ArrayProtocol
tests/test_typing.py:75
Function
test_array_protocol_rawdataview
RawDataView conforms to the writeable MutableArrayProtocol, so that it satisfies the return type of StagedChangesArray.commit()'s ``empty`` callba
tests/test_typing.py:109
Function
test_array_protocol_setitem
Test that the value of __setitem__ can be anything that implements ArrayProtocol
tests/test_staged_changes.py:212
Function
test_asarray
()
tests/test_tools.py:15
Function
test_asarray
()
tests/test_staged_changes.py:300
Function
test_asarray_np2_strings
Test workaround to bug when converting from object array of bytes to NpyStrings This issue affected NumPy >=2.0.0,<2.2.3 https://github.com/nu
tests/test_tools.py:72
Function
test_astype
()
tests/test_staged_changes.py:580
Function
test_astype_base_slabs
()
tests/test_staged_changes.py:629
Function
test_astype_dense
(vfile, dtype)
tests/test_wrappers.py:263
Function
test_astype_object_to_str_keeps_hashes
In object string <-> StringDType conversions the data doesn't change, so the hashes of the swapped base slabs are not invalidated.
tests/test_staged_changes.py:696
Function
test_astype_sparse
(vfile, dtype)
tests/test_wrappers.py:299
Function
test_astype_wipes_hashes
()
tests/test_staged_changes.py:671
Function
test_attrs
(vfile)
tests/test_api.py:1227
Function
test_auto_create_group
(vfile)
tests/test_api.py:2335
Function
test_auto_delete
(vfile)
tests/test_api.py:1267
Function
test_big_O_performance
Test that __getitem__ and __setitem__ performance is O(selected number of chunks) and not O(total number of chunks). Note: resize() is, by ne
tests/test_staged_changes.py:836
Function
test_blosc_compression_validates
Test that third-party compression filters from hdf5plugin or pytables such as Blosc validate correctly.
tests/test_api.py:3454
Function
test_broadcast_1d
()
tests/test_hash.py:458
Function
test_broadcast_full_2d
()
tests/test_hash.py:447
Function
test_broadcast_full_3d
()
tests/test_hash.py:453
Function
test_broadcast_inner_axis
()
tests/test_hash.py:440
Function
test_build_slab_indices_and_offsets_dense
(h5file)
tests/test_slicetools.py:145
Function
test_build_slab_indices_and_offsets_sparse
(h5file)
tests/test_slicetools.py:186
Function
test_cache_dropped_when_file_collected
The wrapper cache is keyed by id(handle), so it must not outlive the handle, whose id it could otherwise be mistaken for.
tests/test_api.py:1820
Function
test_ceil_a_over_b
(a, b)
tests/test_cytools.py:35
Function
test_changes_dataset
(vfile)
tests/test_api.py:341
Function
test_check_committed
(vfile)
tests/test_api.py:1872
Function
test_chunk_blocks
(shape, chunk_size, max_bytes, expect)
tests/test_backend.py:765
Function
test_chunk_reuse_bytes_strings_mix
Check that that, when writing to a h5py.string_dtype dataset, strings and bytes can be used interchangeably.
tests/test_hashtable.py:167
Function
test_chunk_reuse_multidim_1
Check that we correctly handle chunk reuse verification for multi-dimensional Datasets.
tests/test_hashtable.py:187
Function
test_chunk_reuse_nan
Check that chunks are correctly verified when reused, even with nans.
tests/test_hashtable.py:139
Function
test_chunk_reuse_strings
Check that that strings can be reused and verified.
tests/test_hashtable.py:150
Function
test_chunks_indexer
Test IndexChunkMapper.chunks_indexer and IndexChunkMapper.whole_chunks_idxidx
tests/test_subchunk_map.py:172
Function
test_chunks_indexer_simplifies_indices
Test that chunks_indexer() and whole_chunks_indexer() return a slice if possible.
tests/test_subchunk_map.py:511
Function
test_chunks_with_path
Test that `create_dataset("a/b/x", chunks=(2,))` does not discard the chunks= parameter
tests/test_wrappers.py:426
Function
test_close_after_underlying_file_closed
(vfile)
tests/test_api.py:1798
Function
test_close_other_vfile_while_staging
Closing one VersionedHDF5File must not disturb another one wrapping the same h5py handle, even while the latter is staging a version.
tests/test_api.py:2211
Function
test_closes
(vfile)
tests/test_api.py:1760
Function
test_column_edge_is_made_contiguous
A chunk that is non-contiguous in the slab (trimmed on a non-leading axis) is hashed as if C-contiguous.
tests/test_hash.py:103
Function
test_commit_after_astype
()
tests/test_staged_changes.py:2223
Function
test_commit_after_copy_is_cow
commit() on one CoW sibling does not affect the other.
tests/test_staged_changes.py:2211
Function
test_commit_after_refill
()
tests/test_staged_changes.py:2233
Function
test_commit_after_resize_shrink_trailing_axis_dedup_to_base
Same as above, but the grown edge chunk deduplicates against a chunk on the base slab instead of the full slab.
tests/test_staged_changes.py:2056
Function
test_commit_after_resize_shrink_trailing_axis_dedup_to_full
A resize() that shrinks a trailing axis turns slab_indices and slab_offsets into strided views. When every staged chunk then deduplicates against
tests/test_staged_changes.py:2030
Function
test_commit_base_wins_over_staged
When a chunk matches both a base and (the same value on) another staged chunk, the base slab wins (lowest slab index).
tests/test_staged_changes.py:1859
Function
test_commit_basic
commit() consolidates staged slabs into one new base slab, preserving data.
tests/test_staged_changes.py:1794
Function
test_commit_dedup_against_previous_commit
The hash table of the base slab created by a previous commit() is used to deduplicate later staged chunks.
tests/test_staged_changes.py:1940
Function
test_commit_dedup_edge_chunks
Edge chunks are hashed on their visible area only and deduplicate normally.
tests/test_staged_changes.py:2014
Function
test_commit_dedup_staged_vs_base
A staged chunk identical to an existing base (raw_data) chunk becomes a reference to it and is not rewritten.
tests/test_staged_changes.py:1830
Function
test_commit_dedup_staged_vs_staged
Identical staged chunks are stored once in the new base slab.
tests/test_staged_changes.py:1816
Function
test_commit_doesnt_swap_buffer
Committing a dataset with staged changes doesn't swap the buffer dtype.
tests/test_npystrings.py:139
Function
test_commit_doesnt_write_beyond_edge
commit() trims the edge chunks, so that it never writes to disk the uninitialised padding beyond the edge of a staged chunk
tests/test_staged_changes.py:2120
Function
test_commit_duplicate_base_hashes
When two identical chunks exist on the base slabs, the first one encountered wins and the other contributes no deduplication candidate.
tests/test_staged_changes.py:1886
Function
test_commit_empty_callback
The ``empty`` callback replicates numpy.empty and receives the new slab shape.
tests/test_staged_changes.py:2154
Function
test_commit_empty_callback_non_ndarray
The empty callback may return a non-ndarray MutableArrayProtocol. This is important for the InMemoryDataset wrapper, which uses a callback that
tests/test_staged_changes.py:2189
Function
test_commit_ignores_zeroed_base_hashes
An all-zero row in a base hash table means 'hash unknown': the chunk doesn't contribute a deduplication candidate.
tests/test_staged_changes.py:1992
Function
test_commit_multidim_and_edges
commit() works for multidimensional arrays with edge chunks.
tests/test_staged_changes.py:2104
Function
test_commit_no_staged_chunks
commit() on an array without staged chunks has nothing to write, so it does not append a new base slab.
tests/test_staged_changes.py:2134
Function
test_commit_plan_dedup_only_changes_metadata
A CommitPlan that deduplicates every staged chunk plans no data transfer and no new base slab - yet it still repoints those chunks, and it must re
tests/test_staged_changes.py:2089
Function
test_commit_readonly
()
tests/test_staged_changes.py:2203
Function
test_commit_repr
()
tests/test_staged_changes.py:2291
Function
test_commit_reuses_dereferenced_base_chunk
All base-slab hashes are considered, even of chunks no longer referenced by the virtual array (e.g. deleted versions ago but still in raw_data).
tests/test_staged_changes.py:1913
Function
test_commit_size_zero
commit() on a size-0 array is a well-behaved no-op-ish operation.
tests/test_staged_changes.py:2145
Function
test_commit_skips_dereferenced_staged_chunks
A staged chunk that was dropped by resize(), while other chunks on its slab remain in use, is not committed.
tests/test_staged_changes.py:1961
Function
test_commit_staged_changes_dedup_no_new_chunks
A version that only re-stages chunks identical to ones already in raw_data appends no new base slab and leaves the on-disk hash table untouched.
tests/test_backend.py:560
Function
test_commit_staged_changes_edge_chunk_hashtable
The on-disk hash table records the *trimmed* (start, stop) of a rewritten edge chunk - start still lands on a full-chunk boundary, but stop is the
tests/test_backend.py:486
Function
test_commit_staged_changes_hotswapped_sparse_dataset
An InMemorySparseDataset (no base slabs) can nonetheless have raw_data after DatasetWrapper hot-swapped it from a InMemoryDataset.
tests/test_backend.py:629
Function
test_commit_staged_changes_modify
Modifying a dataset carried over from a previous version goes through commit_staged_changes (an InMemoryDataset, i.e. one base slab on entry), not
tests/test_backend.py:464
Function
test_commit_staged_changes_out_of_order_hashtable
Staged chunks are deduplicated onto the correct raw_data offset even when the records of the on-disk hash table are not in chunk order, which is t
tests/test_backend.py:709
Function
test_commit_staged_changes_read_only_slab_metadata
A StagedChangesArray may hand out read-only slab metadata arrays that are shared with another array. `commit_staged_changes` mutates those arrays,
tests/test_backend.py:686
Function
test_commit_staged_changes_recovers_from_failed_commit
A commit that crashes halfway through leaves raw_data - and possibly the hash table too - enlarged, with garbage past the last recorded chunk. Nei
tests/test_backend.py:508
Function
test_commit_staged_changes_recreated_sparse_dataset
An InMemorySparseDataset (no base slabs) can nonetheless have raw_data, either because it was deleted and then created anew or because it was crea
tests/test_backend.py:597
Function
test_commit_staged_changes_sparse_edge_chunk
A brand new (sparse) dataset has no base slab on entry (n_base_slabs == 0). Partially filling it, edge chunk included, commits the right chunks.
tests/test_backend.py:580
Function
test_commit_string_dtype
()
tests/test_staged_changes.py:2243
Function
test_commit_with_dropped_staged_slabs
commit() when a staged slab was entirely dropped by resize()
tests/test_staged_changes.py:1974
Function
test_commit_writes_through_callback
The callback's returned array is where the chunks actually land (mirrors the InMemoryDataset wrapper writing into a raw_data view).
tests/test_staged_changes.py:2171
Function
test_committed_propagation
Check that InMemoryGroup propagates the '_committed' state to child instances.
tests/test_wrappers.py:228
Function
test_committed_subgroups_are_read_only
Subgroups of a committed version group cannot be written to.
tests/test_api.py:2170
Function
test_compression
Test .compression and .compression_opts properties. Also test that compression and compression_opts parameters are preserved when calling crea
tests/test_wrappers.py:348
Function
test_convert_to_array_dataset
When DatasetWrapper hot-swaps a InMemoryDataset with a InMemoryArrayDataset after a full-array update, don't revert to object dtype.
tests/test_npystrings.py:187
Function
test_copy
()
tests/test_staged_changes.py:546
Function
test_create_base_dataset
(h5file)
tests/test_backend.py:30
Function
test_create_base_dataset_multidimension
(h5file)
tests/test_backend.py:35
Function
test_create_dataset
(vfile)
tests/test_api.py:277
Function
test_create_dataset_dtype_arg
(vfile, dtype)
tests/test_api.py:3487
Function
test_create_dataset_other_filters
(vfile, name, value, sparse)
tests/test_api.py:3516
Function
test_create_dataset_warns_for_ignored_kwargs
create_dataset() in versioned_hdf5 has a lot less kwargs than the same function in h5py. Test that the extra args are accepted, but ignored wi
tests/test_api.py:321
Function
test_create_version
(h5file)
tests/test_versions.py:17
Function
test_create_version_chunks
(h5file)
tests/test_versions.py:106
Function
test_create_virtual_dataset
Mix data chunks and fill_value chunks in any geometry, including edge chunks along any axis, and check that the virtual dataset reads back exactly
tests/test_slicetools.py:721
Function
test_create_virtual_dataset_arbitrary_offsets
The same chunk of raw_data can be referenced by an arbitrary number of chunks of the virtual dataset.
tests/test_slicetools.py:777
Function
test_create_virtual_dataset_commit_roundtrip
End-to-end: commit_staged_changes() followed by create_virtual_dataset(), twice in a row on the same StagedChangesArray.
tests/test_slicetools.py:907
Function
test_create_virtual_dataset_empty
A dataset with a zero-length axis has no chunks to point at.
tests/test_slicetools.py:766
Function
test_create_virtual_dataset_fill_only
commit_staged_changes() of an array that is entirely fill_value leaves no base slab behind; create_virtual_dataset() handles zero base slabs.
tests/test_slicetools.py:937
Function
test_create_virtual_dataset_inconsistent
slab_indices and slab_offsets are validated against raw_data.
tests/test_slicetools.py:981
← previous
next →
501–600 of 983, ranked by callers