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

◆ cast_python_object_to_aggregate()

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)

◆ check_type()

def SCL.TypeChecker.check_type (   instance,
  expected_type 
)
 This function checks whether an object is an instance of a given class
returns False or True

Variable Documentation

◆ DEBUG

bool SCL.TypeChecker.DEBUG = False

◆ RAISE_EXCEPTION_IF_TYPE_DOES_NOT_MATCH

bool SCL.TypeChecker.RAISE_EXCEPTION_IF_TYPE_DOES_NOT_MATCH = True