is_error_dtype

caqtus.analysis.stats.is_error_dtype(dtype: DataType) bool

Check if a dtype is a QuantityDType.

Parameters:

dtype – the dtype to check.

Returns:

True if the dtype is a polars.Struct with two fields, magnitude and units, False otherwise.