fields.mixins.components.FieldComponentCoreMixin.convert_to_base#
- FieldComponentCoreMixin.convert_to_base(unit_system: str | None = None, equivalence: str | None = None, **kwargs)[source]#
Convert the buffer to base units of a given system (in-place).
This is shorthand for converting to the base unit equivalent using unyt logic.
- Parameters:
- Raises:
UnitConversionError – If base unit conversion is invalid.
NotImplementedError – If the buffer does not support unit conversion.