Action #1842
All cscripts should have a clear() method
Status: | New | Start date: | 08/11/2016 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assigned To: | - | % Done: | 0% | |
Category: | - | |||
Target version: | - | |||
Duration: |
Description
All scripts should have the following standard ctools methods:
clear()
run()
save()
execute()
For the moment the
clear()
method is generally missing.
Recurrence
No recurrence.
History
#1 Updated by Mayer Michael over 8 years ago
I agree. We should also go through the tools and check for necessary methods to access the results in Python, e.g. observation containers.
cscaldb
: should return a list/dictionary of caldb entriescsfindobs
: should return a list of found runs (done)csiactcopy
: nothing to return, I guess? Maybe a list of files?csiactdata
: List of available names (done)csiactobs
: Observation container, including models (done)csobs2caldb
: nothing to return, right?csmodelinfo
: nothing to be returned I guess. Maybe the model container?csobsdef
: return observation container (done)cslightcrv
: returns the lightcurve, do we need anobs()
-method returning the observation container?csobsinfo
: Has methods to return azimuths, zeniths, gti, ebounds, offsets. Maybe add anobs()
method return observation container for consistency?csmodelmerge
: should have a method to retrieve the merged models and also set them (in order to be able to fully run in-memory)cspull
: nothing to be returned. Maybe add a method for the csv result container?csresmap
: should return the resulting skymapcsroot2caldb
: nothing to be returned?cssens
: maybe the csv container holding the results?csspec
: returns the spectrum FITS object. Do we need a method for the observation container?cstsdist
: nothing to return?cstsmapmerge
: should return the final TS mapGSkyMap
-object.cstsmapsplit
: should return a list of the commandscsworkflow
: nothing to return