Chandra X-Ray Observatory
	(CXC)
Skip to the navigation links
Last modified: December 2013

URL: http://cxc.harvard.edu/ciao/ahelp/paramio_punlearn.html
Jump to: Description · Example · See Also


AHELP for CIAO 4.9

punlearn

Context: paramio

Synopsis

Restore the system defaults for a parameter file.

Syntax

punlearn(paramfile)
punlearn(paramlist)

Description

This function is essentially the same as the command-line version (see "ahelp tools punlearn").

The input value can be one of:

  • a string containing a single name - e.g. "dmcopy"
  • a list of names, such as ["dmextract","dmlist","dmcopy"]

Note that punlearn() does not accept a Param_File object - i.e. the output of paramopen().

The paramio module is not available by default; see "ahelp paramio" for information on loading the module.

Example

>>> from paramio import *
>>> punlearn("dmextract")
>>> punlearn(["dmextract","dmlist","dmcopy"])
>>> parlist = ["dmextract","dmlist","dmcopy"]
>>> punlearn(parlist)

This example shows the different ways that punlearn() can be used.

See Also

paramio
paccess, paramclose, paramio, paramopen, pget, pgets, plist, pquery, pset

Last modified: December 2013
Smithsonian Institute Smithsonian Institute

The Chandra X-Ray Center (CXC) is operated for NASA by the Smithsonian Astrophysical Observatory. 60 Garden Street, Cambridge, MA 02138 USA.   Email:   cxchelp@head.cfa.harvard.edu Smithsonian Institution, Copyright © 1998-2017. All rights reserved.