fields.buffers.base.BufferBase.has_units#

property BufferBase.has_units: bool#

Whether the buffer carries unit metadata.

This returns True if the buffer has an attached physical unit (i.e., self.units is not None), and False otherwise.

Returns:

True if the buffer has units, False if it is unitless.

Return type:

bool