{ } Raw JSON

bundles / astropy latest / astropy / io / fits / header / Header / _keyword_from_index

function

astropy.io.fits.header:Header._keyword_from_index

source: /astropy/io/fits/header.py :1729

Signature

def   _keyword_from_index ( self idx )

Summary

Given an integer index, return the (keyword, repeat) tuple that index refers to. For most keywords the repeat will always be zero, but it may be greater than zero for keywords that are duplicated (especially commentary keywords).

Extended Summary

In a sense this is the inverse of self.index, except that it also supports duplicates.

Aliases

  • astropy.io.fits.Header._keyword_from_index