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/restore.py.html
AHELP for Sherpa 4.1

restore

Context: py.sherpa

Synopsis

Restore a previous Sherpa session from a file

Syntax

restore([filename=sherpa.save])

Description

The restore command restores all information about a Sherpa session, including the data, from a save file ("ahelp save"). The file is platform-independent, allowing collaborators to send a Sherpa session to one another.

  • filename - name, including path, of the save file; default is "sherpa.save" in the working directory

Currently the session is stored as a binary file, so it cannot be viewed or modified outside of Sherpa. In the future, it may be made available as an ASCII file to allow users to view and edit it.

Example 1

sherpa> restore()

The session is restored from the default file, sherpa.save.

Example 2

sherpa> restore("/data/m31/model2.shp")

The session is restored from the file /data/m31/model2.shp.

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.