fields.buffers.registry#

Buffer resolution and registration logic for Pisces Geometry.

This module defines the infrastructure for registering and resolving buffer types used in the Pisces field system. Buffers are the backend data containers for field values, and may be implemented using NumPy, unyt, HDF5 datasets, or any other array-like structure that adheres to the BufferBase interface.

The registry system ensures that field constructors can automatically determine how to wrap arbitrary user-provided input (such as np.ndarray, list, unyt_array) into the correct buffer backend without requiring explicit user configuration.

Functions

resolve_buffer_class([buffer_class, ...])

Resolve a buffer class from a string, type, or fallback.

Classes

BufferRegistry()

Registry for mapping array-like objects to Pisces buffer backends.