SCL.TypeChecker Namespace Reference

Functions

def cast_python_object_to_aggregate (obj, aggregate)
 
def check_type (instance, expected_type)
 

Variables

bool DEBUG = False
 
bool RAISE_EXCEPTION_IF_TYPE_DOES_NOT_MATCH = True
 

Function Documentation

def SCL.TypeChecker.cast_python_object_to_aggregate (   obj,
  aggregate 
)
This function casts a python object to an aggregate type. For instance:
[1.,2.,3.]-> ARRAY(1,3,REAL)
def SCL.TypeChecker.check_type (   instance,
  expected_type 
)
This function checks wether an object is an instance of a given class
returns False or True

Variable Documentation

bool SCL.TypeChecker.DEBUG = False
bool SCL.TypeChecker.RAISE_EXCEPTION_IF_TYPE_DOES_NOT_MATCH = True