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_delete_versions_invalidates_held_dataset
Same as test_delete_versions_invalidates_held_group, for a dataset that was obtained directly.
tests/test_replay.py:1123
Function
test_delete_versions_invalidates_held_group
A version group obtained before delete_versions() must not keep reading from the stale chunk offsets afterwards.
tests/test_replay.py:1107
Function
test_delete_versions_invalidates_other_handle
All VersionedHDF5File handles on a file must be invalidated by delete_versions(), not just the one it was called on.
tests/test_replay.py:1096
Function
test_delete_versions_nested_groups
(vfile)
tests/test_replay.py:925
Function
test_delete_versions_no_data
(vfile)
tests/test_replay.py:878
Function
test_delete_versions_no_data2
(vfile)
tests/test_replay.py:901
Function
test_delete_versions_prev_version
(vfile)
tests/test_replay.py:976
Function
test_delete_versions_resets_edge_chunk_padding
raw_data must not retain any data from the deleted versions in the padding around the chunks that lie on the edge of the virtual dataset. This inc
tests/test_replay.py:1134
Function
test_delete_versions_speed
Test that delete_versions only needs linear time to find the previous version for the versions that are being kept.
tests/test_replay.py:1395
Function
test_delete_versions_variable_length_strings
(vfile)
tests/test_replay.py:1190
Function
test_delitem
(vfile)
tests/test_api.py:1053
Function
test_dont_load_wholly_selected_chunks
Test that __setitem__ loads from the base slabs only the chunks that are partially selected by the index
tests/test_staged_changes.py:847
Function
test_dtype_priority_from_array
In StagedChangesArray.from_array, dtype from base array takes precedence over the one from fill_value
tests/test_staged_changes.py:928
Function
test_dtype_priority_full
In StagedChangesArray.full, explicitly declared dtype takes precedence over the one from fill_value. However, if omitted, always respect fill_valu
tests/test_staged_changes.py:942
Function
test_dtype_priority_init
In StagedChangesArray.__init__, dtype from base slabs takes precedence over the one from fill_value
tests/test_staged_changes.py:911
Function
test_edge_chunk_ignores_uninitialised_memory
A chunk shorter than the physical slab width must hash only its valid region, never the (possibly garbage) memory past the edge.
tests/test_hash.py:78
Function
test_empty
(vfile)
tests/test_api.py:1759
Function
test_empty_chunk
A chunk with a zero-length axis hashes just its (empty) shape string.
tests/test_hash.py:141
Function
test_empty_dataset_str_dtype
(vfile)
tests/test_api.py:2080
Function
test_entire_chunks_mapper
(args)
tests/test_subchunk_map.py:449
Function
test_expand_dims
()
tests/test_hash.py:457
Function
test_fillvalue
(vfile)
tests/test_api.py:1376
Function
test_filters_hotswap_to_inmemoryarraydataset
Test .compression, .compression_opts, .shuffle, and .fletcher32 after DatasetWrapper hot-swaps InMemoryDataset -> InMemoryArrayDataset -> InMe
tests/test_wrappers.py:358
Function
test_forbidden_dataset_name
(h5file)
tests/test_versions.py:304
Function
test_fortran_order
()
tests/test_hash.py:379
Function
test_from_array_as_staged_slabs_1
from_array(..., as_base_slabs=False) Input array is exactly divisible by chunk_size. Slabs are writeable views of the original array.
tests/test_staged_changes.py:1250
Function
test_from_array_as_staged_slabs_2
from_array(..., as_base_slabs=False) Input array is not exactly divisible by chunk_size. All slabs are views of the original array, including
tests/test_staged_changes.py:1263
Function
test_from_array_as_staged_slabs_3
from_array(..., as_base_slabs=False) Only some axes are not exactly divisible by chunk_size.
tests/test_staged_changes.py:1318
Function
test_from_array_as_staged_slabs_4
from_array(..., as_base_slabs=False) Input array is too small to fully cover even a single chunk; the slab is a trimmed writeable view of the
tests/test_staged_changes.py:1355
Function
test_from_array_as_staged_slabs_5
from_array(..., as_base_slabs=False) Input array is a read-only NumPy array. It is CoW-copied on first write.
tests/test_staged_changes.py:1385
Function
test_from_array_as_staged_slabs_6
from_array(..., as_base_slabs=False) Input array is an ArrayProtocol.
tests/test_staged_changes.py:1400
Function
test_from_array_as_staged_slabs_astype
astype() lazily converts trimmed staged slabs.
tests/test_staged_changes.py:1716
Function
test_from_array_as_staged_slabs_changes
changes() yields edge chunks trimmed to the exact edge size.
tests/test_staged_changes.py:1657
Function
test_from_array_as_staged_slabs_commit
commit() hashes, deduplicates, and consolidates trimmed staged slabs.
tests/test_staged_changes.py:1670
Function
test_from_array_as_staged_slabs_copy
copy() CoW-deep-copies trimmed staged slabs upon first write access.
tests/test_staged_changes.py:1701
Function
test_from_array_as_staged_slabs_rechunk
rechunk() works on trimmed staged slabs.
tests/test_staged_changes.py:1739
Function
test_from_array_as_staged_slabs_refill
refill() rewrites fill_value points on trimmed staged slabs in place.
tests/test_staged_changes.py:1728
Function
test_from_array_as_staged_slabs_resize_axis0_enlarge_axis1_shrink
Enlarging axis 0 while shrinking axis 1 relocates the trimmed last chunks and drops the slabs left unreferenced by the shrink.
tests/test_staged_changes.py:1602
Function
test_from_array_as_staged_slabs_resize_axis0_enlarge_axis1_shrink_drop
Enlarging axis 0 relocates the only chunk of single-chunk trimmed slabs, which drops them; the drop is re-derived from scratch together with the d
tests/test_staged_changes.py:1623
Function
test_from_array_as_staged_slabs_resize_axis0_only
Enlarging only along axis 0 relocates trimmed last chunks instead of deep-copying whole slabs.
tests/test_staged_changes.py:1496
Function
test_from_array_as_staged_slabs_resize_full_edge_no_reloc
Full edge chunks living on trimmed staged slabs are filled in place. After shrinking (3, 5) -> (2, 3), the trimmed slabs still span 3 rows but th
tests/test_staged_changes.py:1575
Function
test_from_array_as_staged_slabs_resize_shrink_and_noop
resize() deep-copies trimmed staged slabs only when enlarging beyond a trimmed edge; a shrink or a no-op resize leaves them as views. Enlarging af
tests/test_staged_changes.py:1424
Function
test_from_array_as_staged_slabs_resize_shrink_hash_tables
Relocating trimmed staged slabs also truncates their hash tables, if present.
tests/test_staged_changes.py:1539
Function
test_from_array_as_staged_slabs_trimmed_shapes
from_array(..., as_base_slabs=False) Edge slabs are trimmed to the exact edge size, never padded.
tests/test_staged_changes.py:1413
Function
test_from_array_as_staged_slabs_untrim_axis0_only_noop
_untrim_staged_slabs() does nothing when only axis 0 is being enlarged. Slabs trimmed along axis 0 are left for ResizePlan, which relocates only
tests/test_staged_changes.py:1473
Function
test_from_raw_data
(setup_vfile)
tests/test_hashtable.py:34
Function
test_full_slab_broadcast
hash_slab works on a read-only broadcasted array (the StagedChangesArray full slab) and matches the contiguous materialization.
tests/test_hash.py:123
Function
test_get_diff
Check that the diff between two versions returns the expected chunks.
tests/test_api.py:2745
Function
test_get_diff_same_version
Check that the diff between a version and itself is nothing.
tests/test_api.py:2773
Function
test_get_nth_prev_version
(h5file)
tests/test_versions.py:198
Function
test_getitem
(vfile)
tests/test_api.py:810
Method
test_getitem
__getitem__ changes chunk dtype upon first access.
tests/test_staged_changes.py:689
Function
test_getitem_by_timestamp
(vfile)
tests/test_api.py:889
Function
test_group_chunks_compression
(vfile)
tests/test_api.py:1502
Function
test_group_contains
(vfile)
tests/test_api.py:1233
Function
test_group_dict_accessors
Test that InMemoryGroup supports dictionary-like accessors.
tests/test_wrappers.py:192
Function
test_group_get
Test that InMemoryGroup.get() returns the same as __getitem__ for existing keys.
tests/test_wrappers.py:181
Function
test_group_repr
Test that repr(InMemoryGroup) also shows reprs of child objects.
tests/test_wrappers.py:208
Function
test_groups
(vfile)
tests/test_api.py:1076
Function
test_has_base_chunks
()
tests/test_staged_changes.py:376
Function
test_has_changes
()
tests/test_staged_changes.py:358
Function
test_hash_arena_strings
Test that we're not calling hashlib.hash.digest() on NpyStrings, which could cause hash collisions: https://github.com/numpy/numpy/issues/2922
tests/test_npystrings.py:418
Function
test_hash_compat
Test that NpyStrings and object strings produce identical hashes.
tests/test_npystrings.py:387
Function
test_hash_native
Test that chunks in StagedChangesArray have not been converted to object dtype, which means they will reach the hashing function intact
tests/test_npystrings.py:341
Function
test_hash_tables_parallel_to_slabs
hash_tables stays the same length as slabs, with None wherever a slab is None.
tests/test_staged_changes.py:2164
Function
test_hashtable
(h5file)
tests/test_hashtable.py:12
Function
test_hashtable_multidimension
(h5file)
tests/test_hashtable.py:48
Function
test_hypothesis_multichunk
Random tiled chunks carved out of a randomly strided slab.
tests/test_hash.py:560
Function
test_hypothesis_single_chunk
(slab_and_name)
tests/test_hash.py:553
Function
test_identical_chunks_same_hash
()
tests/test_hash.py:237
Function
test_initialize
(setup_vfile)
tests/test_backend.py:23
Function
test_insert_in_middle_multi_dim
Test we correctly handle inserting into a multi-dimensional Dataset and shift the existing entries back.
tests/test_api.py:2891
Function
test_invalid_base_hash_tables
()
tests/test_staged_changes.py:1148
Function
test_invalid_indices
()
tests/test_subchunk_map.py:542
Function
test_invalid_parameters
()
tests/test_staged_changes.py:1043
Function
test_issue_208
(setup_vfile)
tests/test_hashtable.py:63
Function
test_iter_versions
(vfile)
tests/test_api.py:252
Function
test_ix_with_slices
(args)
tests/test_tools.py:121
Function
test_known_collisions_reinterpreted_dtype
The dtype is not part of the digest, so two chunks of the same shape with the same raw byte image collide even when they mean entirely different t
tests/test_hash.py:723
Method
test_large_fraction_constant_sparse
( self, num_transactions=250, filename="test_large_fraction_constant_sparse",
analysis/generate_data_base.py:258
Function
test_list_assign
(vfile)
tests/test_api.py:1341
Function
test_load
()
tests/test_staged_changes.py:314
Function
test_load_plan_without_base_slabs
()
tests/test_staged_changes.py:353
Function
test_make_empty_dataset
Check that creating a dataset before making it empty can be done successfully. This test would pass unless the file gets closed/reopened for each
tests/test_api.py:2823
Function
test_make_empty_multidimensional_dataset
Check that creating a multidimensional dataset before making it empty can be done successfully. See https://github.com/deshaw/versioned-hdf5/
tests/test_api.py:2857
Function
test_mapper_attributes
()
tests/test_subchunk_map.py:155
Function
test_mask_reading
(tmp_path)
tests/test_api.py:2116
Function
test_mask_reading_read_only
(tmp_path)
tests/test_api.py:2140
Function
test_match_behaviour
Test that versioned_hdf5 behaves like h5py when it comes to NpyStrings UX.
tests/test_npystrings.py:101
Function
test_matches_legacy
(legacy_hash, chunk)
tests/test_hash_legacy_compat.py:99
Function
test_mismatched_fixed_string_dtypes
(vfile)
tests/test_api.py:1733
Function
test_modify_metadata_blosc_compression
Test that setting compression via modify_metadata works for third-party compression filters from hdf5plugin or pytables, such as Blosc.
tests/test_replay.py:1598
Function
test_modify_metadata_blosc_compression_opts
Test changing compression options of a custom compression filter, using hdf5plugin API.
tests/test_replay.py:1673
Function
test_modify_metadata_chunk2
(vfile)
tests/test_replay.py:309
Function
test_modify_metadata_chunks
(vfile)
tests/test_replay.py:258
Function
test_modify_metadata_chunks_not_materialized
modify_metadata on a dataset whose wrapper carries chunks=None. A dataset assigned with ``sv[name] = array`` is backed by an InMemoryArrayDataset
tests/test_replay.py:718
Function
test_modify_metadata_chunks_true
modify_metadata(chunks=True) on a dense dataset created with explicit chunks. modify_metadata reuses the cached original InMemoryArrayDataset; it
tests/test_replay.py:704
Function
test_modify_metadata_compression
(vfile)
tests/test_replay.py:102
Function
test_modify_metadata_compression2
(vfile)
tests/test_replay.py:181
Function
test_modify_metadata_compression_default_compression
Test that setting compression via modify_metadata works for default compression.
tests/test_replay.py:1537
← previous
next →
601–700 of 917, ranked by callers