scipp.full(*, dims=None, shape=None, sizes=None, unit=dimensionless, dtype=float64, value, variance=None)

Constructs a Variable with values initialized to the specified value with given dimension labels and shape. The dims and shape can also be specified using a sizes dict.


scipp.zeros() scipp.ones()

  • dims (Optional[Sequence[str]]) – Optional (if sizes is specified), dimension labels.

  • shape (Optional[Sequence[int]]) – Optional (if sizes is specified), dimension sizes.

  • sizes (Optional[dict]) – Optional, dimension label to size map.

  • unit (Union[scipp._scipp.core.Unit, str]) – Optional, unit of contents. Default=dimensionless

  • dtype (scipp._scipp.core._DType) – Optional, type of underlying data. Default=float64

  • value (Any) – The value to fill the Variable with

  • variance (Optional[Any]) – Optional, the variance to fill the Variable with. If None or not provided, the variances will not be set.

Return type