MCPcopy Create free account

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

Functions917 in github.com/deshaw/versioned-hdf5

Functiontest_modify_metadata_decompress_blosc
Use modify metadata to undo all compression. This uses a third-party compression filter, which adds nuance because h5py.Dataset.compression re
tests/test_replay.py:1716
Functiontest_modify_metadata_decompress_gzip
Use modify metadata to undo all compression.
tests/test_replay.py:1698
Functiontest_modify_metadata_dtype
(vfile)
tests/test_replay.py:360
Functiontest_modify_metadata_dtype2
(vfile)
tests/test_replay.py:412
Functiontest_modify_metadata_dtype_fillvalue
Test calling modify_metadata() to change both dtype and fillvalue, and the new fillvalue would not fit in the old dtype, so it needs to be upd
tests/test_replay.py:617
Functiontest_modify_metadata_fillvalue1
(vfile, new_fillvalue)
tests/test_replay.py:464
Functiontest_modify_metadata_fillvalue2
(vfile)
tests/test_replay.py:515
Functiontest_modify_metadata_fillvalue3
(vfile)
tests/test_replay.py:566
Functiontest_modify_metadata_other_filters
Test changing fletcher32, scaleoffset, shuffle parameters.
tests/test_replay.py:1749
Functiontest_modify_metadata_sparse_rechunk
(vfile, chunks, expect)
tests/test_replay.py:664
Functiontest_modify_metadata_sparse_rechunk_bad_chunks
(vfile)
tests/test_replay.py:674
Functiontest_modify_metadata_sparse_rechunk_true_nd
(vfile)
tests/test_replay.py:694
Methodtest_mostly_appends_dense
( self, num_transactions=250, filename="test_mostly_appends_dense", chunk_size
analysis/generate_data_base.py:296
Methodtest_mostly_appends_dense_old
( self, num_transactions=250, filename="test_mostly_appends_dense_old", chunk_
analysis/generate_data.py:463
Methodtest_mostly_appends_sparse
( self, num_transactions=250, filename="test_mostly_appends_sparse", chunk_siz
analysis/generate_data_base.py:36
Functiontest_moved_file
Make sure the virtual datasets do not hard-code the filename
tests/test_api.py:1319
Functiontest_multidimensional
(vfile)
tests/test_api.py:1467
Functiontest_multiple_chunks_route_to_rows
Each chunk's digest lands in the row named by hash_rows; unlisted rows stay untouched.
tests/test_hash.py:55
Functiontest_multiple_swaps_warning
Test that flipping the buffer multiple times between object and StringDType raises a warning.
tests/test_npystrings.py:294
Functiontest_nan_hashes_bitwise
Chunks are deduplicated by raw bytes, not by value: two chunks of NaNs with the same bit pattern hash the same, even though they compare unequal
tests/test_hash.py:660
Functiontest_nested_group
(vfile)
tests/test_api.py:1352
Functiontest_no_chunks_is_noop
()
tests/test_hash.py:158
Functiontest_no_collision_chunk_geometry_within_slab
Chunks carved out of the same slab with the same number of identical elements, but different edge-trimmed shapes, hash differently. The data
tests/test_hash.py:617
Functiontest_no_collision_multichunk_geometry
Chunks of different shapes hashed in a single hash_slab call don't contaminate each other; the shape suffix of one chunk must not leak into the ne
tests/test_hash.py:669
Functiontest_no_collision_same_data_different_geometry
The same six values, arranged in different shapes, hash differently. Every reshape below is C-contiguous, so the data bytes are byte-for-byte the
tests/test_hash.py:603
Functiontest_no_collision_shape_string_injection
Data bytes that spell out a shape string can't be used to forge the shape suffix, no matter how they line up with the real one.
tests/test_hash.py:635
Functiontest_no_collision_signed_zero
+0.0 and -0.0 compare equal, but they are not the same chunk.
tests/test_hash.py:652
Functiontest_no_collision_vlen_embedded_length_prefix
A variable-width string that spells out its own length prefix can't be used to forge the element boundaries.
tests/test_hash.py:307
Functiontest_no_collision_vlen_empty_and_nul
Empty strings, and strings made of NUL bytes, are all distinguished from each other and from their own repetitions.
tests/test_hash.py:318
Functiontest_no_collision_vlen_split_points
Moving the boundaries between variable-width strings, without changing their concatenation, changes the hash.
tests/test_hash.py:299
Functiontest_no_recursive_version_group_access
(vfile)
tests/test_api.py:2052
Functiontest_nonroot
(vfile)
tests/test_api.py:967
Functiontest_npystrings_object_equivalence
A StringDType array and the equivalent object-of-str array hash identically
tests/test_hash_legacy_compat.py:115
Functiontest_npystrings_slab
()
tests/test_hash.py:221
Functiontest_numpy_ints_constructors
Test when input parameters are numpy.int types instead of plain python ints
tests/test_staged_changes.py:1168
Functiontest_numpy_ints_methods
Test when input parameters are numpy.int types instead of plain python ints
tests/test_staged_changes.py:1196
Functiontest_object_dtype_hashes_concatenated_values
Test that object dtype arrays hash values which concatenate to the same string to different hashes. See https://github.com/deshaw/versioned-hd
tests/test_hashtable.py:105
Functiontest_object_dtype_hashes_values
Test that object dtype arrays hash values, not element ids. See https://github.com/deshaw/versioned-hdf5/issues/256 for more information.
tests/test_hashtable.py:79
Functiontest_object_edge_chunk_ignores_uninitialised
()
tests/test_hash.py:210
Functiontest_object_slab
()
tests/test_hash.py:194
Functiontest_object_strided_slab
()
tests/test_hash.py:506
Functiontest_object_strings_bare_object_dtype_fillvalue
Test the end-to-end use case ``group[name] = np.array([...], dtype=object)``: assignment of a bare object dtype array, stripped of the h5py st
tests/test_wrappers.py:492
Functiontest_object_strings_default_fillvalue
(vfile)
tests/test_wrappers.py:446
Functiontest_other_compression_bad_value
Test that invalid compression types do not validate.
tests/test_api.py:3001
Functiontest_pod_dtypes_multichunk
(dtype)
tests/test_hash.py:173
Functiontest_read_many_slices
(h5file, args)
tests/test_slicetools.py:332
Functiontest_read_many_slices_array_protocol
Test that the src array can be anything that implements ArrayProtocol
tests/test_slicetools.py:611
Functiontest_read_many_slices_broadcast_indices
1D indices are automatically broadcast to 2D
tests/test_slicetools.py:455
Functiontest_read_many_slices_clip_dst_count
Counts are clipped automatically because either dst_start or dst_stride are too large. This causes some slices to become size 0 along one dime
tests/test_slicetools.py:423
Functiontest_read_many_slices_clip_src_count
Counts are clipped automatically because either src_start or src_stride are too large. This causes some slices to become size 0 along one dime
tests/test_slicetools.py:391
Functiontest_read_many_slices_dst_size_zero
dst array has size 0
tests/test_slicetools.py:531
Functiontest_read_many_slices_fail
()
tests/test_slicetools.py:640
Functiontest_read_many_slices_layouts
read_many_slices uses the hdf5 C API for the memory layouts H5Sselect_hyperslab can describe and falls back to the pure-python transfer for the re
tests/test_slicetools.py:543
Functiontest_read_many_slices_no_indices
Edge case where there are no slices of data to copy
tests/test_slicetools.py:478
Functiontest_read_many_slices_noncontiguous_idx
one or more coordinate array is not C-contiguous along the rows or both columns and rows. Non-contiguous rows are supported thanks to Cython
tests/test_slicetools.py:491
Functiontest_read_many_slices_not_fast_read_ok
src is a h5py dataset that doesn't support fast read
tests/test_slicetools.py:592
Functiontest_read_many_slices_param
(args)
tests/test_subchunk_map.py:232
Functiontest_read_many_slices_param_nd
(args)
tests/test_subchunk_map.py:310
Functiontest_read_many_slices_rawdataview
(h5file, fast)
tests/test_slicetools.py:621
Functiontest_read_many_slices_src_size_zero
src array has size 0
tests/test_slicetools.py:520
Functiontest_read_only
(setup_vfile)
tests/test_api.py:1774
Functiontest_read_only_no_wrappers
(setup_vfile)
tests/test_api.py:2163
Functiontest_readonly
()
tests/test_staged_changes.py:1215
Functiontest_readonly_data
Read-only data is copied upon creation of a new version.
tests/test_wrappers.py:254
Functiontest_rebuild_hashtable
Verify rebuilding the hashtable for a single object dtype and single version. 1. An info log message is issued to the user about DATA_VERSION mis
tests/test_api.py:2280
Functiontest_rebuild_hashtable_chunk_reuse
Test that the correct chunks are used after rebuilding the tables.
tests/test_api.py:2532
Functiontest_rebuild_hashtable_chunk_reuse_multi_dim
Test that the correct chunks are used after rebuilding the tables for a multi-dimensional array.
tests/test_api.py:2666
Functiontest_rebuild_hashtable_chunk_reuse_unicode
Test that the correct chunks are used after rebuilding the tables for non-ascii data.
tests/test_api.py:2591
Functiontest_rebuild_hashtable_multiple_datasets
Verify rebuilding the hashtable for multiple datasets across multiple versions. 1. An info log message is issued to the user about DATA_VERSION m
tests/test_api.py:2372
Functiontest_rebuild_hashtable_multiple_nested_dataset
Test rebuilding the hash tables of a nested dataset.
tests/test_api.py:2499
Functiontest_rebuild_hashtable_nested_dataset
Test rebuilding the hash tables of a nested dataset.
tests/test_api.py:2472
Functiontest_rechunk
()
tests/test_staged_changes.py:775
Functiontest_recreate_dataset_bounded_memory
recreate_dataset() streams the chunks of a committed dataset from the raw_data of the source group into the raw_data of the target group, instead
tests/test_replay.py:814
Functiontest_recreate_dataset_staged_changes
recreate_dataset() rewrites every version of a dataset into a brand new group. When its callback returns an InMemoryDataset, the StagedChangesArra
tests/test_replay.py:739
Functiontest_recreate_dataset_streams_chunks
recreate_dataset() rewrites each version a block of chunks at a time, so that peak memory usage doesn't scale with the size of the dataset. Neithe
tests/test_replay.py:777
Functiontest_recreate_hashtable
(vfile)
tests/test_replay.py:1027
Functiontest_recreate_raw_data
(vfile)
tests/test_replay.py:1010
Functiontest_recreate_virtual_dataset
(vfile)
tests/test_replay.py:1057
Functiontest_refill
()
tests/test_staged_changes.py:737
Methodtest_refill
refill() changes chunk dtype upon first access. This happens **before** the new fill_value is applied, to avoid overflows or loss of d
tests/test_staged_changes.py:723
Functiontest_refill_noop
()
tests/test_staged_changes.py:757
Functiontest_refill_skips_dropped_slabs
()
tests/test_staged_changes.py:766
Functiontest_repr
()
tests/test_staged_changes.py:984
Functiontest_resize
(vfile)
tests/test_api.py:450
Functiontest_resize_axis
(vfile)
tests/test_api.py:751
Functiontest_resize_int_types_grow
(tmp_path)
tests/test_api.py:705
Functiontest_resize_int_types_shrink
(tmp_path)
tests/test_api.py:688
Functiontest_resize_multiple_dimensions
(vfile)
tests/test_api.py:622
Functiontest_resize_noop
()
tests/test_staged_changes.py:405
Functiontest_resize_sparse
(vfile)
tests/test_api.py:728
Functiontest_resize_through_size_zero
Enlarge or shrink partial edge chunks along an axis while another axis is size 0, so that no chunks are actually transferred.
tests/test_staged_changes.py:414
Functiontest_resize_unaligned
(vfile)
tests/test_api.py:607
Functiontest_resize_weird_size
(vfile, size)
tests/test_api.py:788
Functiontest_reversed_all_axes
()
tests/test_hash.py:427
Functiontest_reversed_axis_0
()
tests/test_hash.py:421
Functiontest_rewrite_dataset
rewrite_dataset() copies every chunk of an array into a brand new raw_data, deduplicating them, and returns the same {virtual index: raw_data slic
tests/test_backend.py:997
Functiontest_rewrite_dataset_empty
A size-0 dataset has no chunks to rewrite.
tests/test_backend.py:1043
Functiontest_scalar
(setup_vfile)
tests/test_api.py:1902
Functiontest_scalar_dataset
Scalar (ndim=0) datasets are supported by h5py, but implementing them in versioned_hdf5 would take a lot of special-casing as raw_data can't go be
tests/test_api.py:1566
Functiontest_set_chunks_nested
(vfile)
tests/test_api.py:1656
← previousnext →701–800 of 917, ranked by callers