Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/deshaw/versioned-hdf5
/ functions
Functions
917 in github.com/deshaw/versioned-hdf5
⨍
Functions
917
◇
Types & classes
85
↳
Endpoints
6
Function
test_astype_sparse
(vfile, dtype)
tests/test_wrappers.py:303
Function
test_astype_wipes_hashes
()
tests/test_staged_changes.py:622
Function
test_attrs
(vfile)
tests/test_api.py:995
Function
test_auto_create_group
(vfile)
tests/test_api.py:1894
Function
test_auto_delete
(vfile)
tests/test_api.py:1035
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:798
Function
test_blosc_compression_validates
Test that third-party compression filters from hdf5plugin or pytables such as Blosc validate correctly.
tests/test_api.py:3013
Function
test_broadcast_1d
()
tests/test_hash.py:451
Function
test_broadcast_full_2d
()
tests/test_hash.py:440
Function
test_broadcast_full_3d
()
tests/test_hash.py:446
Function
test_broadcast_inner_axis
()
tests/test_hash.py:433
Function
test_build_slab_indices_and_offsets_dense
(h5file)
tests/test_slicetools.py:140
Function
test_build_slab_indices_and_offsets_sparse
(h5file)
tests/test_slicetools.py:181
Function
test_ceil_a_over_b
(a, b)
tests/test_cytools.py:35
Method
test_changes
changes() changes chunk dtype upon first access.
tests/test_staged_changes.py:712
Function
test_changes_dataset
(vfile)
tests/test_api.py:339
Function
test_check_committed
(vfile)
tests/test_api.py:1600
Function
test_chunk_blocks
(shape, chunk_size, max_bytes, expect)
tests/test_backend.py:991
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:412
Function
test_closes
(vfile)
tests/test_api.py:1528
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:2129
Function
test_commit_after_copy_is_cow
commit() on one CoW sibling does not affect the other.
tests/test_staged_changes.py:2117
Function
test_commit_after_refill
()
tests/test_staged_changes.py:2139
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:1839
Function
test_commit_basic
commit() consolidates staged slabs into one new base slab, preserving data.
tests/test_staged_changes.py:1774
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:1920
Function
test_commit_dedup_edge_chunks
Edge chunks are hashed on their visible area only and deduplicate normally.
tests/test_staged_changes.py:1994
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:1810
Function
test_commit_dedup_staged_vs_staged
Identical staged chunks are stored once in the new base slab.
tests/test_staged_changes.py:1796
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:2026
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:1866
Function
test_commit_empty_callback
The ``empty`` callback replicates numpy.empty and receives the new slab shape.
tests/test_staged_changes.py:2060
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:2095
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:1972
Function
test_commit_multidim_and_edges
commit() works for multidimensional arrays with edge chunks.
tests/test_staged_changes.py:2010
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:2040
Function
test_commit_readonly
()
tests/test_staged_changes.py:2109
Function
test_commit_repr
()
tests/test_staged_changes.py:2197
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:1893
Function
test_commit_size_zero
commit() on a size-0 array is a well-behaved no-op-ish operation.
tests/test_staged_changes.py:2051
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:1941
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:809
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:735
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:878
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:713
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:935
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:757
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:846
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:829
Function
test_commit_string_dtype
()
tests/test_staged_changes.py:2149
Function
test_commit_with_dropped_staged_slabs
commit() when a staged slab was entirely dropped by resize()
tests/test_staged_changes.py:1954
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:2077
Function
test_committed_propagation
Check that InMemoryGroup propagates the '_committed' state to child instances.
tests/test_wrappers.py:229
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:334
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:497
Function
test_create_base_dataset
(h5file)
tests/test_backend.py:29
Function
test_create_base_dataset_multidimension
(h5file)
tests/test_backend.py:34
Function
test_create_dataset
(vfile)
tests/test_api.py:275
Function
test_create_dataset_dtype_arg
(vfile, dtype)
tests/test_api.py:3046
Function
test_create_dataset_other_filters
(vfile, name, value, sparse)
tests/test_api.py:3075
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:319
Function
test_create_empty_multidimensional_virtual_dataset
Check that creating an empty multidimensional virtual dataset writes no raw data. See https://github.com/deshaw/versioned-hdf5/issues/430 for con
tests/test_backend.py:681
Function
test_create_empty_virtual_dataset
Check that creating an empty virtual dataset writes no raw data. Also check that the empty virtual dataset is formed correctly. See https://g
tests/test_backend.py:653
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
Check that creating a virtual dataset from chunks of real datasets works.
tests/test_backend.py:374
Function
test_create_virtual_dataset_attrs
(h5file)
tests/test_backend.py:415
Function
test_create_virtual_dataset_multidimension
(h5file)
tests/test_backend.py:458
Function
test_create_virtual_dataset_offset
(h5file)
tests/test_backend.py:500
Function
test_create_virtual_dataset_offset_multidimension
(h5file)
tests/test_backend.py:547
Function
test_data_v4_to_sc_hash_table_out_of_order
_data_v4_to_sc_hash_table() indexes the digests by chunk index, whatever order the records happen to be in on disk. VersionedHDF5File.rebuild_hash
tests/test_backend.py:905
Function
test_data_version_identifier_missing
Test that a file with no data version identifier logs a message when opened.
tests/test_api.py:2254
Function
test_data_version_identifier_valid
Test that a file with valid data version id opens without a log message.
tests/test_api.py:2239
Function
test_datasetwrapper
(vfile)
tests/test_api.py:2093
Function
test_datasetwrapper_resize
DatasetWrapper.resize() hot-swaps a InMemoryArrayDataset for a InMemorySparseDataset when enlarging. Test that this doesn't flip the buffer dt
tests/test_npystrings.py:464
Function
test_datasetwrapper_setitem
DatasetWrapper.__setitem__() hot-swaps a InMemoryDataset for a InMemoryArrayDataset when the whole dataset is updated. Test that this doesn't
tests/test_npystrings.py:442
Function
test_delete_datasets
(vfile)
tests/test_api.py:1812
Function
test_delete_empty_dataset
Test that deleting an empty dataset executes successfully.
tests/test_replay.py:1316
Function
test_delete_string_dataset
Test that delete_versions + h5repack works correctly for variable length string dtypes. When calling delete_versions, the dataset must be rec
tests/test_replay.py:1352
Function
test_delete_variable_length_strings
(vfile)
tests/test_replay.py:1303
Function
test_delete_version
(vfile)
tests/test_replay.py:848
Function
test_delete_version
(vfile)
tests/test_api.py:428
Function
test_delete_version
(h5file)
tests/test_versions.py:276
Function
test_delete_versions
(vfile)
tests/test_replay.py:861
Function
test_delete_versions2
(vfile)
tests/test_replay.py:1176
Function
test_delete_versions_after_shrinking
Test that if you shrink a dataset so that an edge chunk contains the same data of the previous edge chunk on disk, but trimmed to the new size, th
tests/test_replay.py:1434
Function
test_delete_versions_after_updates
Delete versions after various types of changes to each versions See Also -------- https://github.com/deshaw/versioned-hdf5/issues/411
tests/test_replay.py:1485
Function
test_delete_versions_current_version
(vfile)
tests/test_replay.py:1288
Function
test_delete_versions_fillvalue_only_dataset
(vfile)
tests/test_replay.py:1203
Function
test_delete_versions_fillvalue_only_dataset_raw_data_shape
(tmp_path)
tests/test_replay.py:1247
Function
test_delete_versions_invalidates_cache
delete_versions() shuffles the chunks of raw_data around. A version that was read through the same VersionedHDF5File handle beforehand must not ke
tests/test_replay.py:1085
← previous
next →
501–600 of 917, ranked by callers