{ } Raw JSON

bundles / astropy 7.0.1 / astropy / io / fits / header / Header / _update

function

astropy.io.fits.header:Header._update

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

Signature

def   _update ( self card )

Summary

The real update code. If keyword already exists, its value and/or comment will be updated. Otherwise a new card will be appended.

Extended Summary

This will not create a duplicate keyword except in the case of commentary cards. The only other way to force creation of a duplicate is to use the insert(), append(), or extend() methods.

Aliases

  • astropy.io.fits.Header._update