array

module of dascore.utils source

Utilities for working with patches and arrays.

Functions

Name Description
apply_array_func Apply an array function.
apply_ufunc Apply a ufunc to one or more patches.
convert_bytes_to_strings Decode fixed-width bytes arrays back to the requested string form.
convert_strings_to_bytes Encode string-like arrays as fixed-width UTF-8 bytes.
hash_array Return a stable hash for a NumPy array.
is_string_byte_serializable_array Return True when an array should use fixed-width string-byte storage.
patch_array_function Intercept NumPy functions for patch operations.
patch_array_ufunc Called when a numpy ufunc is applied to a patch (array_ufunc).

Classes

Name Description
PatchUFunc A ufunc wrapper that can be applied to patches with dimension support.