#NEWLINE# def make_port_specs( self ) : #NEWLINE# #INDENT# self . _port_specs = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# self . _input_port_specs = [ ] #NEWLINE# self . _output_port_specs = [ ] #NEWLINE# self . _input_remap = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# self . _output_remap = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# if ( self . pipeline is None ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# registry = get_module_registry ( ) #NEWLINE# for module in self . pipeline . module_list : #NEWLINE# #INDENT# if ( ( module . name == 'OutputPort' ) and ( module . package == basic_pkg ) ) : #NEWLINE# #INDENT# ( port_name , sigstring , optional , depth , _ ) = self . get_port_spec_info ( module ) #NEWLINE# port_spec = registry . create_port_spec ( port_name , 'output' , None , sigstring , optional , depth = depth ) #NEWLINE# self . _port_specs [ ( port_name , 'output' ) ] = port_spec #NEWLINE# self . _output_port_specs . append ( port_spec ) #NEWLINE# self . _output_remap [ port_name ] = module #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( ( module . name == 'InputPort' ) and ( module . package == basic_pkg ) ) : #NEWLINE# #INDENT# ( port_name , sigstring , optional , depth , _ ) = self . get_port_spec_info ( module ) #NEWLINE# port_spec = registry . create_port_spec ( port_name , 'input' , None , sigstring , optional , depth = depth ) #NEWLINE# self . _port_specs [ ( port_name , 'input' ) ] = port_spec #NEWLINE# self . _input_port_specs . append ( port_spec ) #NEWLINE# self . _input_remap [ port_name ] = module