def convert_to_vt_type(t):
    vt_type_dict = {'str':'core.modules.basic_modules.String',
                    'float': 'core.modules.basic_modules.Float',
                    'int':'core.modules.basic_modules.Integer',
                    'bool':'core.modules.basic_modules.Boolean',
                    #'numpy.ndarray':'reg.get_module_by_name("edu.utah.sci.vistrails.numpyscipy", "Numpy Array", namespace="numpy|array")',
                    }
    if vt_type_dict.has_key(t):
        return vt_type_dict[t]
    else:
        print t % "Type %s not found!"
        return None
dataset/ETHPy150Open VisTrails/VisTrails/contrib/cdat/scripts/cdat_domain.py/convert_to_vt_type/swapped operands of `%`