make_broadcastable_to

method of dascore.core.coordmanager.CoordManager source

make_broadcastable_to(
    self ,
    shape: tuple[int, …] ,
    array: None ,
    drop_coords: bool = False,
)-> ‘tuple[Self, MaybeArray]’

Try to make coord manager broadcastable to a given shape.

Only dimensions with Non coords can be broadcasted up.

Parameters

Parameter Description
shape A shape tuple (tuple of ints)
array An array with the same shape as coord manager.
drop_coords If True, allow dropping coordinates to broadcast coord manager
dimensions. Otherwise, only NonCoords can change shape.