astropy 5.0

Parameters
_apply(method, *args, **kwargs)

The method is any of the shape-changing methods for ndarray ( reshape , swapaxes , etc.), as well as those picking particular elements ( __getitem__ , take , etc.). It will be applied to the underlying arrays (e.g., jd1 and jd2 in Time ), with the results used to create a new instance.

Parameters

method : str

Method to be applied to the instance's internal data arrays.

args : tuple

Any positional arguments for method .

kwargs : dict

Any keyword arguments for method .

Create a new instance, with method applied to underlying data.

Examples

See :

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


File: /astropy/utils/shapes.py#169
type: <class 'function'>
Commit: