#NEWLINE# def __init__( self , group , params_dict , unknowns_dict , connections , inputs , outputs , mode ) : #NEWLINE# #INDENT# self . params_dict = group #NEWLINE# self . unknowns_dict = unknowns_dict #NEWLINE# self . mode = mode #NEWLINE# self . _sysdata = group . _sysdata #NEWLINE# param_groups = [ ] #NEWLINE# output_groups = [ ] #NEWLINE# self . inputs = [ ] #NEWLINE# for inp in inputs : #NEWLINE# #INDENT# if isinstance ( inp , string_types ) : #NEWLINE# #INDENT# inp = ( inp , ) #NEWLINE# #UNINDENT# param_groups . append ( tuple ( inp ) ) #NEWLINE# self . inputs . append ( tuple ( inp ) ) #NEWLINE# #UNINDENT# self . outputs = [ ] #NEWLINE# for out in outputs : #NEWLINE# #INDENT# if isinstance ( out , string_types ) : #NEWLINE# #INDENT# out = ( out , ) #NEWLINE# #UNINDENT# output_groups . append ( tuple ( out ) ) #NEWLINE# self . outputs . append ( tuple ( out ) ) #NEWLINE# #UNINDENT# self . _sgraph = self . _setup_sys_graph ( group , connections ) #NEWLINE# self . _compute_relevant_vars ( group , connections ) #NEWLINE# self . relevant [ None ] = set ( ( m [ 'top_promoted_name' ] for m in itervalues ( unknowns_dict ) ) ) #NEWLINE# self . relevant [ None ] . update ( ( m [ 'top_promoted_name' ] for m in itervalues ( params_dict ) ) ) #NEWLINE# if ( mode == 'fwd' ) : #NEWLINE# #INDENT# self . groups = param_groups #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . groups = output_groups