#NEWLINE# def __init__( self , vecwrapper , slice , val , meta , probdata , alloc_complex , owned = True , imag_val = None , dangling = False ) : #NEWLINE# #INDENT# ' Initialize this accessor.\n\n        Args\n        ----\n        vecwrapper : `VecWrapper`\n            `VecWrapper` that owns this `Accessor`.\n\n        slice : `Slice` object\n            A slice into the vector for this variable.\n\n        val : float or ndarray\n            Initial value of variable for this accessor.\n\n        meta : dict\n            Metadata for the variable collected from components.\n\n        probdata : _ProbData\n            A data object for Problem level data that we need in order to store\n            flags that span multiple layers in the hierarchy.\n\n        alloc_complex : bool, optional\n            If True, allocate space for the imaginary part of the vector and\n            configure all functions to support complex computation.\n\n        owned : bool, optional\n            True if this parameter is owned by the vecwrapper.\n\n        imag_val : float or ndarray, optional\n            Ininitial value for imaginary part of this vector. Only used under\n            complex step, and always zero valued.\n\n        dangling : bool, optional\n            If True, this variable is an unconnected param.\n        ' #NEWLINE# self . owned = owned #NEWLINE# self . pbo = bool ( ( dangling or meta . get ( 'pass_by_obj' ) ) ) #NEWLINE# self . remote = meta . get ( 'remote' ) #NEWLINE# if alloc_complex : #NEWLINE# #INDENT# self . probdata = probdata #NEWLINE# #UNINDENT# if ( self . pbo and ( not isinstance ( val , _ByObjWrapper ) ) ) : #NEWLINE# #INDENT# self . val = _ByObjWrapper ( val ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . val = val #NEWLINE# if ( ( alloc_complex is True ) and ( not isinstance ( val , _ByObjWrapper ) ) ) : #NEWLINE# #INDENT# if ( imag_val is None ) : #NEWLINE# #INDENT# imag_val = ( val * 0.0 ) #NEWLINE# #UNINDENT# self . imag_val = imag_val #NEWLINE# #UNINDENT# #UNINDENT# if ( self . remote or self . pbo ) : #NEWLINE# #INDENT# self . slice = None #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . slice = slice #NEWLINE# #UNINDENT# self . meta = meta #NEWLINE# ( self . get , self . flat ) = self . _setup_get_funct ( vecwrapper , meta , alloc_complex ) #NEWLINE# self . set = self . _setup_set_funct ( meta , alloc_complex )