Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1556
News FAQ
Search Home


next up previous contents index
Next: fitter.reset - Function Up: fitter - Tool Previous: fitter.fitter - Function


fitter.done - Function



Package utility
Module fitting
Tool fitter


Remove the tool's resources


Synopsis
done(id, kill)


Arguments

id in the id of a sub-tool
    Allowed: fitter id
    Default: unset
kill in force kill of the default tool
    Allowed: bool
    Default: F


Returns
bool


Description
Remove the tool's resources. If no id specified the complete tool is removed. If the tool is the default tool (dfit) the done will only be executed if the kill argument is true.



Example
- include 'fitting.g'
- fit := fitter()
- id1 := fit.fitter()
- id2 := fit.fitter()
- fit.getstate(id1)
[n=0, typ=0, colfac=1e-06, lmfac=0.001, type=real] 
- fit.getstate(id2)
[n=0, typ=0, colfac=1e-06, lmfac=0.001, type=real] 
- fit.getstate()   
[n=0, typ=0, colfac=1e-06, lmfac=0.001, type=real] 
- fit.done(id1)
T 
- fit.getstate(id2)
[n=0, typ=0, colfac=1e-06, lmfac=0.001, type=real] 
- fit.getstate(id1)
SEVERE: Illegal fitter id in getstate
<fail>: Illegal fitter id in getstate
        File:   note.g, Line 58
        Stack:  throw()
                .() 
- fit
[real=0 ... ] 
- fit.done()
T 
- fit
F





next up previous contents index
Next: fitter.reset - Function Up: fitter - Tool Previous: fitter.fitter - Function   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-10-15