def add_array(self, name, array):
        if hasattr(self, name):
            raise ValueError('name %r is already bound' % name)
        if self._arrays:
            ijk = self._arrays[0].shape
        elif self._vectors:
            ijk = self._vectors[0].shape
        else:
            ijk = ()
        if ijk and array.shape != ijk:
            raise ValueError('array shape %s != existing shape %s'
                             % (array.shape, ijk))
        setattr(self, name, array)
        self._arrays.append(array)
        return array
Handle the InsertDockBarItem dock layout operation.
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.lib/src/openmdao/lib/datatypes/domain/flow.py/FlowSolution.add_array--crossover with--dataset/ETHPy150Open ContinuumIO/ashiba/enaml/enaml/qt/docking/layout_builder.py/LayoutBuilder.visit_InsertDockBarItem