MCPcopy Create free account

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

Functions917 in github.com/deshaw/versioned-hdf5

Functiontest_astype_sparse
(vfile, dtype)
tests/test_wrappers.py:303
Functiontest_astype_wipes_hashes
()
tests/test_staged_changes.py:622
Functiontest_attrs
(vfile)
tests/test_api.py:995
Functiontest_auto_create_group
(vfile)
tests/test_api.py:1894
Functiontest_auto_delete
(vfile)
tests/test_api.py:1035
Functiontest_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
Functiontest_blosc_compression_validates
Test that third-party compression filters from hdf5plugin or pytables such as Blosc validate correctly.
tests/test_api.py:3013
Functiontest_broadcast_1d
()
tests/test_hash.py:451
Functiontest_broadcast_full_2d
()
tests/test_hash.py:440
Functiontest_broadcast_full_3d
()
tests/test_hash.py:446
Functiontest_broadcast_inner_axis
()
tests/test_hash.py:433
Functiontest_build_slab_indices_and_offsets_dense
(h5file)
tests/test_slicetools.py:140
Functiontest_build_slab_indices_and_offsets_sparse
(h5file)
tests/test_slicetools.py:181
Functiontest_ceil_a_over_b
(a, b)
tests/test_cytools.py:35
Methodtest_changes
changes() changes chunk dtype upon first access.
tests/test_staged_changes.py:712
Functiontest_changes_dataset
(vfile)
tests/test_api.py:339
Functiontest_check_committed
(vfile)
tests/test_api.py:1600
Functiontest_chunk_blocks
(shape, chunk_size, max_bytes, expect)
tests/test_backend.py:991
Functiontest_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
Functiontest_chunk_reuse_multidim_1
Check that we correctly handle chunk reuse verification for multi-dimensional Datasets.
tests/test_hashtable.py:187
Functiontest_chunk_reuse_nan
Check that chunks are correctly verified when reused, even with nans.
tests/test_hashtable.py:139
Functiontest_chunk_reuse_strings
Check that that strings can be reused and verified.
tests/test_hashtable.py:150
Functiontest_chunks_indexer
Test IndexChunkMapper.chunks_indexer and IndexChunkMapper.whole_chunks_idxidx
tests/test_subchunk_map.py:172
Functiontest_chunks_indexer_simplifies_indices
Test that chunks_indexer() and whole_chunks_indexer() return a slice if possible.
tests/test_subchunk_map.py:511
Functiontest_chunks_with_path
Test that `create_dataset("a/b/x", chunks=(2,))` does not discard the chunks= parameter
tests/test_wrappers.py:412
Functiontest_closes
(vfile)
tests/test_api.py:1528
Functiontest_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
Functiontest_commit_after_astype
()
tests/test_staged_changes.py:2129
Functiontest_commit_after_copy_is_cow
commit() on one CoW sibling does not affect the other.
tests/test_staged_changes.py:2117
Functiontest_commit_after_refill
()
tests/test_staged_changes.py:2139
Functiontest_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
Functiontest_commit_basic
commit() consolidates staged slabs into one new base slab, preserving data.
tests/test_staged_changes.py:1774
Functiontest_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
Functiontest_commit_dedup_edge_chunks
Edge chunks are hashed on their visible area only and deduplicate normally.
tests/test_staged_changes.py:1994
Functiontest_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
Functiontest_commit_dedup_staged_vs_staged
Identical staged chunks are stored once in the new base slab.
tests/test_staged_changes.py:1796
Functiontest_commit_doesnt_swap_buffer
Committing a dataset with staged changes doesn't swap the buffer dtype.
tests/test_npystrings.py:139
Functiontest_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
Functiontest_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
Functiontest_commit_empty_callback
The ``empty`` callback replicates numpy.empty and receives the new slab shape.
tests/test_staged_changes.py:2060
Functiontest_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
Functiontest_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
Functiontest_commit_multidim_and_edges
commit() works for multidimensional arrays with edge chunks.
tests/test_staged_changes.py:2010
Functiontest_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
Functiontest_commit_readonly
()
tests/test_staged_changes.py:2109
Functiontest_commit_repr
()
tests/test_staged_changes.py:2197
Functiontest_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
Functiontest_commit_size_zero
commit() on a size-0 array is a well-behaved no-op-ish operation.
tests/test_staged_changes.py:2051
Functiontest_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
Functiontest_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
Functiontest_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
Functiontest_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
Functiontest_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
Functiontest_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
Functiontest_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
Functiontest_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
Functiontest_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
Functiontest_commit_string_dtype
()
tests/test_staged_changes.py:2149
Functiontest_commit_with_dropped_staged_slabs
commit() when a staged slab was entirely dropped by resize()
tests/test_staged_changes.py:1954
Functiontest_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
Functiontest_committed_propagation
Check that InMemoryGroup propagates the '_committed' state to child instances.
tests/test_wrappers.py:229
Functiontest_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
Functiontest_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
Functiontest_copy
()
tests/test_staged_changes.py:497
Functiontest_create_base_dataset
(h5file)
tests/test_backend.py:29
Functiontest_create_base_dataset_multidimension
(h5file)
tests/test_backend.py:34
Functiontest_create_dataset
(vfile)
tests/test_api.py:275
Functiontest_create_dataset_dtype_arg
(vfile, dtype)
tests/test_api.py:3046
Functiontest_create_dataset_other_filters
(vfile, name, value, sparse)
tests/test_api.py:3075
Functiontest_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
Functiontest_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
Functiontest_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
Functiontest_create_version
(h5file)
tests/test_versions.py:17
Functiontest_create_version_chunks
(h5file)
tests/test_versions.py:106
Functiontest_create_virtual_dataset
Check that creating a virtual dataset from chunks of real datasets works.
tests/test_backend.py:374
Functiontest_create_virtual_dataset_attrs
(h5file)
tests/test_backend.py:415
Functiontest_create_virtual_dataset_multidimension
(h5file)
tests/test_backend.py:458
Functiontest_create_virtual_dataset_offset
(h5file)
tests/test_backend.py:500
Functiontest_create_virtual_dataset_offset_multidimension
(h5file)
tests/test_backend.py:547
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:905
Functiontest_data_version_identifier_missing
Test that a file with no data version identifier logs a message when opened.
tests/test_api.py:2254
Functiontest_data_version_identifier_valid
Test that a file with valid data version id opens without a log message.
tests/test_api.py:2239
Functiontest_datasetwrapper
(vfile)
tests/test_api.py:2093
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:1812
Functiontest_delete_empty_dataset
Test that deleting an empty dataset executes successfully.
tests/test_replay.py:1316
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:1352
Functiontest_delete_variable_length_strings
(vfile)
tests/test_replay.py:1303
Functiontest_delete_version
(vfile)
tests/test_replay.py:848
Functiontest_delete_version
(vfile)
tests/test_api.py:428
Functiontest_delete_version
(h5file)
tests/test_versions.py:276
Functiontest_delete_versions
(vfile)
tests/test_replay.py:861
Functiontest_delete_versions2
(vfile)
tests/test_replay.py:1176
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:1434
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:1485
Functiontest_delete_versions_current_version
(vfile)
tests/test_replay.py:1288
Functiontest_delete_versions_fillvalue_only_dataset
(vfile)
tests/test_replay.py:1203
Functiontest_delete_versions_fillvalue_only_dataset_raw_data_shape
(tmp_path)
tests/test_replay.py:1247
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:1085
← previousnext →501–600 of 917, ranked by callers