MCPcopy Create free account

hub / github.com/deshaw/versioned-hdf5 / functions

Functions917 in github.com/deshaw/versioned-hdf5

Functiontest_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
Functiontest_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
Functiontest_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
Functiontest_delete_versions_nested_groups
(vfile)
tests/test_replay.py:925
Functiontest_delete_versions_no_data
(vfile)
tests/test_replay.py:878
Functiontest_delete_versions_no_data2
(vfile)
tests/test_replay.py:901
Functiontest_delete_versions_prev_version
(vfile)
tests/test_replay.py:976
Functiontest_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
Functiontest_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
Functiontest_delete_versions_variable_length_strings
(vfile)
tests/test_replay.py:1190
Functiontest_delitem
(vfile)
tests/test_api.py:1053
Functiontest_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
Functiontest_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
Functiontest_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
Functiontest_dtype_priority_init
In StagedChangesArray.__init__, dtype from base slabs takes precedence over the one from fill_value
tests/test_staged_changes.py:911
Functiontest_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
Functiontest_empty
(vfile)
tests/test_api.py:1759
Functiontest_empty_chunk
A chunk with a zero-length axis hashes just its (empty) shape string.
tests/test_hash.py:141
Functiontest_empty_dataset_str_dtype
(vfile)
tests/test_api.py:2080
Functiontest_entire_chunks_mapper
(args)
tests/test_subchunk_map.py:449
Functiontest_expand_dims
()
tests/test_hash.py:457
Functiontest_fillvalue
(vfile)
tests/test_api.py:1376
Functiontest_filters_hotswap_to_inmemoryarraydataset
Test .compression, .compression_opts, .shuffle, and .fletcher32 after DatasetWrapper hot-swaps InMemoryDataset -> InMemoryArrayDataset -> InMe
tests/test_wrappers.py:358
Functiontest_forbidden_dataset_name
(h5file)
tests/test_versions.py:304
Functiontest_fortran_order
()
tests/test_hash.py:379
Functiontest_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
Functiontest_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
Functiontest_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
Functiontest_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
Functiontest_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
Functiontest_from_array_as_staged_slabs_6
from_array(..., as_base_slabs=False) Input array is an ArrayProtocol.
tests/test_staged_changes.py:1400
Functiontest_from_array_as_staged_slabs_astype
astype() lazily converts trimmed staged slabs.
tests/test_staged_changes.py:1716
Functiontest_from_array_as_staged_slabs_changes
changes() yields edge chunks trimmed to the exact edge size.
tests/test_staged_changes.py:1657
Functiontest_from_array_as_staged_slabs_commit
commit() hashes, deduplicates, and consolidates trimmed staged slabs.
tests/test_staged_changes.py:1670
Functiontest_from_array_as_staged_slabs_copy
copy() CoW-deep-copies trimmed staged slabs upon first write access.
tests/test_staged_changes.py:1701
Functiontest_from_array_as_staged_slabs_rechunk
rechunk() works on trimmed staged slabs.
tests/test_staged_changes.py:1739
Functiontest_from_array_as_staged_slabs_refill
refill() rewrites fill_value points on trimmed staged slabs in place.
tests/test_staged_changes.py:1728
Functiontest_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
Functiontest_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
Functiontest_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
Functiontest_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
Functiontest_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
Functiontest_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
Functiontest_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
Functiontest_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
Functiontest_from_raw_data
(setup_vfile)
tests/test_hashtable.py:34
Functiontest_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
Functiontest_get_diff
Check that the diff between two versions returns the expected chunks.
tests/test_api.py:2745
Functiontest_get_diff_same_version
Check that the diff between a version and itself is nothing.
tests/test_api.py:2773
Functiontest_get_nth_prev_version
(h5file)
tests/test_versions.py:198
Functiontest_getitem
(vfile)
tests/test_api.py:810
Methodtest_getitem
__getitem__ changes chunk dtype upon first access.
tests/test_staged_changes.py:689
Functiontest_getitem_by_timestamp
(vfile)
tests/test_api.py:889
Functiontest_group_chunks_compression
(vfile)
tests/test_api.py:1502
Functiontest_group_contains
(vfile)
tests/test_api.py:1233
Functiontest_group_dict_accessors
Test that InMemoryGroup supports dictionary-like accessors.
tests/test_wrappers.py:192
Functiontest_group_get
Test that InMemoryGroup.get() returns the same as __getitem__ for existing keys.
tests/test_wrappers.py:181
Functiontest_group_repr
Test that repr(InMemoryGroup) also shows reprs of child objects.
tests/test_wrappers.py:208
Functiontest_groups
(vfile)
tests/test_api.py:1076
Functiontest_has_base_chunks
()
tests/test_staged_changes.py:376
Functiontest_has_changes
()
tests/test_staged_changes.py:358
Functiontest_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
Functiontest_hash_compat
Test that NpyStrings and object strings produce identical hashes.
tests/test_npystrings.py:387
Functiontest_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
Functiontest_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
Functiontest_hashtable
(h5file)
tests/test_hashtable.py:12
Functiontest_hashtable_multidimension
(h5file)
tests/test_hashtable.py:48
Functiontest_hypothesis_multichunk
Random tiled chunks carved out of a randomly strided slab.
tests/test_hash.py:560
Functiontest_hypothesis_single_chunk
(slab_and_name)
tests/test_hash.py:553
Functiontest_identical_chunks_same_hash
()
tests/test_hash.py:237
Functiontest_initialize
(setup_vfile)
tests/test_backend.py:23
Functiontest_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
Functiontest_invalid_base_hash_tables
()
tests/test_staged_changes.py:1148
Functiontest_invalid_indices
()
tests/test_subchunk_map.py:542
Functiontest_invalid_parameters
()
tests/test_staged_changes.py:1043
Functiontest_issue_208
(setup_vfile)
tests/test_hashtable.py:63
Functiontest_iter_versions
(vfile)
tests/test_api.py:252
Functiontest_ix_with_slices
(args)
tests/test_tools.py:121
Functiontest_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
Methodtest_large_fraction_constant_sparse
( self, num_transactions=250, filename="test_large_fraction_constant_sparse",
analysis/generate_data_base.py:258
Functiontest_list_assign
(vfile)
tests/test_api.py:1341
Functiontest_load
()
tests/test_staged_changes.py:314
Functiontest_load_plan_without_base_slabs
()
tests/test_staged_changes.py:353
Functiontest_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
Functiontest_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
Functiontest_mapper_attributes
()
tests/test_subchunk_map.py:155
Functiontest_mask_reading
(tmp_path)
tests/test_api.py:2116
Functiontest_mask_reading_read_only
(tmp_path)
tests/test_api.py:2140
Functiontest_match_behaviour
Test that versioned_hdf5 behaves like h5py when it comes to NpyStrings UX.
tests/test_npystrings.py:101
Functiontest_matches_legacy
(legacy_hash, chunk)
tests/test_hash_legacy_compat.py:99
Functiontest_mismatched_fixed_string_dtypes
(vfile)
tests/test_api.py:1733
Functiontest_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
Functiontest_modify_metadata_blosc_compression_opts
Test changing compression options of a custom compression filter, using hdf5plugin API.
tests/test_replay.py:1673
Functiontest_modify_metadata_chunk2
(vfile)
tests/test_replay.py:309
Functiontest_modify_metadata_chunks
(vfile)
tests/test_replay.py:258
Functiontest_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
Functiontest_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
Functiontest_modify_metadata_compression
(vfile)
tests/test_replay.py:102
Functiontest_modify_metadata_compression2
(vfile)
tests/test_replay.py:181
Functiontest_modify_metadata_compression_default_compression
Test that setting compression via modify_metadata works for default compression.
tests/test_replay.py:1537
← previousnext →601–700 of 917, ranked by callers