def restore_references(self, refs):

        for name, response in refs.items():
            try:
                if response.check_resolve():
                    self.add_response(str(response), name, response.scope)
                else:
                    raise AttributeError("'%s' are unresolved." %
                                               response.get_unresolved())
            except Exception as err:
                self.parent._logger.warning("Couldn't restore response '%s':"
                                            " %s" % (name, err))
Restore references to component `name` from `refs`.
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.main/src/openmdao/main/hasresponses.py/HasResponses.restore_references