coords.Coords.append#

Coords.append(coords)#

Append more coords to a Coords object.

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 to self.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 a Coords object, the default axis is the first one instead of the last, and it is a method rather than a function.

See Also#

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.]])