#NEWLINE# def _setup_var_meta( self , pathname , meta , index , src_acc , store_byobjs ) : #NEWLINE# #INDENT# "\n        Populate the metadata dict for the named variable.\n\n        Args\n        ----\n        pathname : str\n            Absolute name of the variable.\n\n        meta : dict\n            Metadata for the variable collected from components.\n\n        index : int\n            Index into the array where the variable value is to be stored\n            (if variable is not 'pass by object').\n\n        src_acc : Accessor\n            Accessor object for the source variable that this target variable is\n            connected to.\n\n        store_byobjs : bool, optional\n            If True, store 'pass by object' variables in the `VecWrapper`\n            we're building.\n        " #NEWLINE# src_meta = src_acc . meta #NEWLINE# val = meta [ 'val' ] #NEWLINE# if ( ( 'src_indices' not in meta ) and ( 'src_indices' not in src_meta ) ) : #NEWLINE# #INDENT# meta [ 'size' ] = src_meta [ 'size' ] #NEWLINE# #UNINDENT# if src_acc . pbo : #NEWLINE# #INDENT# if ( ( not meta . get ( 'remote' ) ) and store_byobjs and ( not isinstance ( val , FileRef ) ) ) : #NEWLINE# #INDENT# val = src_acc . val #NEWLINE# #UNINDENT# meta [ 'pass_by_obj' ] = True #NEWLINE# slc = None #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if meta . get ( 'remote' ) : #NEWLINE# #INDENT# slc = None #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# slc = ( index , ( index + meta [ 'size' ] ) ) #NEWLINE# #UNINDENT# #UNINDENT# return ( slc , val )