About Chandra Archive Proposer Instruments & Calibration Newsletters Data Analysis HelpDesk Calibration Database NASA Archives & Centers Chandra Science Links

Skip the navigation links
Last modified: December 2008

URL: http://cxc.harvard.edu/sherpa4.1/delete_model_component.sl.html
AHELP for Sherpa 4.1

delete_model_component

Context: sl.sherpa

Synopsis

Delete a model component

Syntax

delete_model_component( name );

Description

The delete_model_component command deletes a model component by name.

  • name - the name of the model component. Once deleted, it is removed from the local variable scope.

Example 1

sherpa> list_model_components();
['abs1', 'pl'];
sherpa> delete_model_component("abs1");
sherpa> list_model_components();
['pl'];

Delete the model component "abs1".

Example 2

sherpa> list_model_components();
['c', 'g1'];
sherpa> delete_model_component("g1");
sherpa> list_model_components();
['c'];

Delete the model component "g1".

Bugs

See the bugs pages on the Sherpa website for an up-to-date listing of known bugs.

Last modified: December 2008



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