ess.reduce.uncertainty.broadcast_uncertainties#
- ess.reduce.uncertainty.broadcast_uncertainties(data, /, *, prototype, mode)[source]#
Broadcast uncertainties using the specified mode.
Since Scipp raises an error when broadcasting data with variances, this function provides an explicit way to handle variances during broadcast operations.
- Parameters:
data (
Variable
|DataArray
) – Data with uncertainties to broadcast.prototype (
DataArray
|Variable
) – Prototype defining the new sizes (dims and shape, or binned data sizes).mode (
UncertaintyBroadcastMode
) – Selected broadcast mode.
- Returns: