from __future__ import absolute_import
from stat import S_ISDIR, ST_MODE
from casatasks.private.casa_transition import is_CASA6
from casatools import image
from casatools import ctsys
return 'version: ' + ctsys.version_info( )
from taskinit import find_casa
from init_tools import iatool
vestr += casa['build']['version'] + ' '
vestr += ' ' + casa['build']['time']
except Exception as instance:
if hasattr(myclog, 'version'):
vestr += myclog.version()
vestr += ' could not be determined'
def write_image_history(myia, tname, param_names, param_vals, myclog=None):
Update image attached to image tool with the parameters that task tname was called with.
myia - attached image tool or image name (string)
tname - name of the calling task.
param_names - list of parameter names.
param_vals - list of parameter values (in the same order as param_names).
myclog - a casalog instance (optional)
param_names = cvt.as_list(param_names)
param_vals = cvt.as_list(param_vals)
myia_is_string = type(myia) == str