#NEWLINE# def initialize( setupObjectToUse = None , useLocalEvaluator = True , vdmOverride = None ) : #NEWLINE# #INDENT# global _evaluator #NEWLINE# if ( _evaluator is not None ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# import ufora.FORA.python.Evaluator.LocalEvaluator as LocalEvaluator #NEWLINE# import ufora.FORA.python.Evaluator.CumulusEvaluator as CumulusEvaluator #NEWLINE# if ( setupObjectToUse is None ) : #NEWLINE# #INDENT# configToUse = Setup . config ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# configToUse = setupObjectToUse . config #NEWLINE# #UNINDENT# if configToUse : #NEWLINE# #INDENT# _evaluator = LocalEvaluator . defaultLocalEvaluator ( vdmOverride = vdmOverride ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# import ufora.native.CallbackScheduler as CallbackSchedulerNative #NEWLINE# schedulerFactory = CallbackSchedulerNative . createSimpleCallbackSchedulerFactory ( ) #NEWLINE# _evaluator = CumulusEvaluator . CumulusEvaluator ( schedulerFactory . createScheduler ( 'CumulusEvaluator' , 1 ) )