Action #1842

All cscripts should have a clear() method

Added by Knödlseder Jürgen over 8 years ago. Updated over 8 years ago.

Status:NewStart date:08/11/2016
Priority:NormalDue 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 entries
  • csfindobs: 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 an obs()-method returning the observation container?
  • csobsinfo: Has methods to return azimuths, zeniths, gti, ebounds, offsets. Maybe add an obs() 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 skymap
  • csroot2caldb: 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 map GSkyMap-object.
  • cstsmapsplit: should return a list of the commands
  • csworkflow: nothing to return

Also available in: Atom PDF