[Casa-framework] builtin tools
Raymond Rusk
Raymond.Rusk at nrc-cnrc.gc.ca
Tue Apr 3 11:36:27 EDT 2007
On Tue, 3 Apr 2007, Lindsey Davis wrote:
> Hi,
>
> I have a question about the persistence of the builtin tools. It is
> quite easy to do something like
>
> cb = None
>
> or
>
> x = 6
> cb = x
>
> in Python.
>
> What is the effect of overwriting a builtin tool. I know how to create
> my own instance of a tool and call it whatever I want to, but how do
> you expect your users to recover gracefully from this?
Maybe a convenience method to recreate tools should be added. Something
like 'newtool("cb", newvar)'. It does nothing if the cb tool exists but
recreates it if it doesn't and associates a new unique variable name with
whatever value the user inadvently used cb to hold.
> How does doing this affect the tasks that depend on a calibrator tool.
> Do these task recreate a new if the builtin has been corrupted or is NOne or do
> they fail ?
>
>
> Lindsey
> _______________________________________________
> Casa-framework mailing list
> Casa-framework at donar.cv.nrao.edu
> http://listmgr.cv.nrao.edu/mailman/listinfo/casa-framework
>
--
Dr. Raymond Rusk Dr. Raymond Rusk
ALMA Software Engineer Ingenieur Logiciel ALMA
National Research Council Canada Conseil national de recherches Canada
Herzberg Institute of Astrophysics L'Institut Herzberg d'Astrophysique
DRAO, P.O. Box 248 OFRA, B.P. Box 248
Penticton, BC V2A 6J9 |\^/| Penticton, (C.-B.) V2A 6J9
Government of Canada _|\| |/|_ Gouvernement du Canada
Tel: (250)490-4347 > < Tel: (250)490-4347
Fax: (250)493-7767 >_./|\._< Fax: (250)493-7767
Raymond.Rusk at nrc-cnrc.gc.ca Raymond.Rusk at nrc-cnrc.gc.ca
More information about the Casa-framework
mailing list