MCPcopy Create free account

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

Functions983 in github.com/deshaw/versioned-hdf5

Functiontest_create_virtual_dataset_not_committed
A StagedChangesArray with staged slabs, or with more than one base slab, is not downstream of commit_staged_changes() and is rejected.
tests/test_slicetools.py:954
Functiontest_create_virtual_dataset_npystrings
The base slab of sc may be an astype() view of raw_data, as it is when the StagedChangesArray uses StringDType while raw_data uses h5py object str
tests/test_slicetools.py:886
Functiontest_create_virtual_dataset_strided_indices
slab_indices and slab_offsets aren't always C-contiguous: shrinking a StagedChangesArray leaves them as [:a, :b] slices of the original contig
tests/test_slicetools.py:806
Functiontest_create_virtual_dataset_vlen_strings
Variable-length strings: the fillvalue is silently ignored, as a virtual dataset of vlen strings cannot carry a fillvalue; see vds_fillvalue() for
tests/test_slicetools.py:860
Functiontest_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:656
Functiontest_data_version_identifier_missing
Test that a file with no data version identifier logs a message when opened.
tests/test_api.py:2695
Functiontest_data_version_identifier_valid
Test that a file with valid data version id opens without a log message.
tests/test_api.py:2680
Functiontest_datasetwrapper
(vfile)
tests/test_api.py:2534
Functiontest_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
Functiontest_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
Functiontest_delete_datasets
(vfile)
tests/test_api.py:2253
Functiontest_delete_empty_dataset
Test that deleting an empty dataset executes successfully.
tests/test_replay.py:1665
Functiontest_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:1701
Functiontest_delete_variable_length_strings
(vfile)
tests/test_replay.py:1652
Functiontest_delete_version
(vfile)
tests/test_replay.py:1149
Functiontest_delete_version
(vfile)
tests/test_api.py:430
Functiontest_delete_version
(h5file)
tests/test_versions.py:276
Functiontest_delete_versions
(vfile)
tests/test_replay.py:1162
Functiontest_delete_versions2
(vfile)
tests/test_replay.py:1501
Functiontest_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:1782
Functiontest_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:1833
Functiontest_delete_versions_current_version
(vfile)
tests/test_replay.py:1637
Functiontest_delete_versions_fillvalue_only_dataset
(vfile)
tests/test_replay.py:1552
Functiontest_delete_versions_fillvalue_only_dataset_raw_data_shape
(tmp_path)
tests/test_replay.py:1596
Functiontest_delete_versions_fillvalue_only_fixed_string
Recreated fixed-string VDSs use fillvalue pinned on raw_data, not a bogus value reported by the VDS.
tests/test_replay.py:1529
Functiontest_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:1410
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:1448
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:1432
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:1421
Functiontest_delete_versions_nested_groups
(vfile)
tests/test_replay.py:1226
Functiontest_delete_versions_no_chunks_to_keep
delete_versions() path works when it deletes all chunks in raw_data, i.e. because all surviving versions - are size 0, or - are full of f
tests/test_replay.py:1329
Functiontest_delete_versions_no_data
(vfile)
tests/test_replay.py:1179
Functiontest_delete_versions_no_data2
(vfile)
tests/test_replay.py:1202
Functiontest_delete_versions_prev_version
(vfile)
tests/test_replay.py:1277
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:1459
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:1743
Functiontest_delete_versions_variable_length_strings
(vfile)
tests/test_replay.py:1515
Functiontest_delitem
(vfile)
tests/test_api.py:1285
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:885
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:966
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:980
Functiontest_dtype_priority_init
In StagedChangesArray.__init__, dtype from base slabs takes precedence over the one from fill_value
tests/test_staged_changes.py:949
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:2071
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:2521
Functiontest_entire_chunks_mapper
(args)
tests/test_subchunk_map.py:449
Functiontest_expand_dims
()
tests/test_hash.py:464
Functiontest_fillvalue
(vfile)
tests/test_api.py:1608
Functiontest_filters_hotswap_to_inmemoryarraydataset
Test .compression, .compression_opts, .shuffle, and .fletcher32 after DatasetWrapper hot-swaps InMemoryDataset -> InMemoryArrayDataset -> InMe
tests/test_wrappers.py:372
Functiontest_fixed_string_identical_whole_dataset_update
A fixed-string VDS reports a bogus fillvalue; whole-dataset replacement must use the value pinned on raw_data instead.
tests/test_api.py:2009
Functiontest_forbidden_dataset_name
(h5file, name)
tests/test_versions.py:307
Functiontest_fortran_order
()
tests/test_hash.py:386
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:1284
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:1297
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:1352
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:1389
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:1419
Functiontest_from_array_as_staged_slabs_6
from_array(..., as_base_slabs=False) Input array is an ArrayProtocol.
tests/test_staged_changes.py:1434
Functiontest_from_array_as_staged_slabs_astype
astype() lazily converts trimmed staged slabs.
tests/test_staged_changes.py:1736
Functiontest_from_array_as_staged_slabs_commit
commit() hashes, deduplicates, and consolidates trimmed staged slabs.
tests/test_staged_changes.py:1691
Functiontest_from_array_as_staged_slabs_copy
copy() CoW-deep-copies trimmed staged slabs upon first write access.
tests/test_staged_changes.py:1721
Functiontest_from_array_as_staged_slabs_rechunk
rechunk() works on trimmed staged slabs.
tests/test_staged_changes.py:1759
Functiontest_from_array_as_staged_slabs_refill
refill() rewrites fill_value points on trimmed staged slabs in place.
tests/test_staged_changes.py:1748
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:1636
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:1657
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:1530
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:1609
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:1458
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:1573
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:1447
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:1507
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:3186
Functiontest_get_diff_same_version
Check that the diff between a version and itself is nothing.
tests/test_api.py:3214
Functiontest_get_nth_prev_version
(h5file)
tests/test_versions.py:198
Functiontest_getitem
(vfile)
tests/test_api.py:990
Methodtest_getitem
__getitem__ changes chunk dtype upon first access.
tests/test_staged_changes.py:738
Functiontest_getitem_by_timestamp
(vfile)
tests/test_api.py:1069
Functiontest_group_chunks_compression
(vfile)
tests/test_api.py:1734
Functiontest_group_contains
(vfile)
tests/test_api.py:1465
Functiontest_group_dict_accessors
Test that InMemoryGroup supports dictionary-like accessors.
tests/test_wrappers.py:191
Functiontest_group_get
Test that InMemoryGroup.get() returns the same as __getitem__ for existing keys.
tests/test_wrappers.py:180
Functiontest_group_repr
Test that repr(InMemoryGroup) also shows reprs of child objects.
tests/test_wrappers.py:207
Functiontest_groups
(vfile)
tests/test_api.py:1308
Functiontest_has_base_chunks
()
tests/test_staged_changes.py:378
Functiontest_has_changes
()
tests/test_staged_changes.py:360
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:2258
Functiontest_hashtable
(h5file)
tests/test_hashtable.py:12
Functiontest_hashtable_multidimension
(h5file)
tests/test_hashtable.py:48
Functiontest_helper_reads_while_staging
A helper that opens a read-only VersionedHDF5File on a handle that is being used to stage a version must not invalidate the staged data.
tests/test_api.py:2229
Functiontest_hypothesis_multichunk
Random tiled chunks carved out of a randomly strided slab.
tests/test_hash.py:567
Functiontest_hypothesis_single_chunk
(slab_and_name)
tests/test_hash.py:560
Functiontest_identical_chunks_same_hash
()
tests/test_hash.py:244
Functiontest_initialize
(setup_vfile)
tests/test_backend.py:24
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:3332
← previousnext →601–700 of 983, ranked by callers