fields.buffers.core#

Core buffer types for PyMetric data management.

This module defines the core buffer backends used by the PyMetric framework. Each buffer subclass implements the shared interface defined in BufferBase, but supports a distinct storage strategy.

Usage Notes#

These buffers serve as drop-in storage layers for data fields, components, and other high-level PyMetric components. They ensure consistent semantics for field creation, manipulation, and resolution, regardless of backend format.

All buffer classes:

See also

BufferBase

Classes

ArrayBuffer(array)

A lightweight buffer wrapper around a plain NumPy array.

HDF5Buffer(array[, __is_file_owner__])

A buffer that wraps a lazily-loaded HDF5 dataset using h5py.Dataset.

UnytArrayBuffer(array)

A buffer that wraps a unyt_array, providing unit-aware numerical storage.