-
There was a code duplication in csroot2caldb and csobs2caldb, which is now avoided by exporting the code in the "calutils" module.
-
The str.format() function does not exist for before Python 2.6, so don't use it!
-
These functions are not really observation utilities, and they are not really needed either since they encapsulate only a few lines of code.
-
To avoid code duplication in cscripts the support modules "modutils' and "ioutils" have been added. The obsolete functions cntmap() and modmap() have been removed from the "obsutils" module.
-
The obsutils.sim() function does not correctly handle stacked observations. It appends stacked response cubes to a counts cube in case that multiple observations have been simulated and stacked analysis was requested. The stacked response cube computation is done using the obsutils.get_stacked_response() function. The function obsutils.set_ts_model() has been added to setup a model for TS determination. This is used by some of the cscripts, and avoids code duplication. Finally, the cstsdist and cspull scripts have been refactored.