coords.Coords.append#
- Coords.append(coords)#
Append more coords to a
Coordsobject.The appended coords should have matching dimensions in all but the first axis.
Parameters#
- coords: Coords object
A Coords having a shape with
shape[1:]equal toself.shape[1:].
Returns#
- Coords
The concatenated Coords object (self,coords).
Notes#
Unlike Python’s list.append, this does not change the object in place, but returns the enlarged object. It is like
numpy.append(), but the result is aCoordsobject, the default axis is the first one instead of the last, and it is a method rather than a function.See Also#
concatenate(): concatenate a list of Coords
Examples#
>>> X = Coords([[1],[2]]) >>> Y = Coords([[3],[4]]) >>> X.append(Y) Coords([[1., 0., 0.], [2., 0., 0.], [3., 0., 0.], [4., 0., 0.]])