astropy 5.0

ParametersReturns
pop(self, index=-1)

Parameters

index : int, str, tuple of (string, int), optional

An integer value of index indicates the position from which pop() removes and returns an HDU. A string value or a tuple of (string, int) functions as a key for identifying the HDU to be removed and returned. If key is a tuple, it is of the form (key, ver) where ver is an EXTVER value that must match the HDU being searched for.

If the key is ambiguous (e.g. there are multiple 'SCI' extensions) the first match is returned. For a more precise match use the (name, ver) pair.

If even the (name, ver) pair is ambiguous the numeric index must be used to index the duplicate HDU.

Returns

hdu : BaseHDU

The HDU object at position indicated by index or having name and version specified by index .

Remove an item from the list and return it.

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/io/fits/hdu/hdulist.py#548
type: <class 'function'>
Commit: