def _get_case_data(self, driver, inputs, outputs):
        """Return a list of values for the case in the same order as our values.
        Raise a KeyError if any of our names are missing from the case.
        """
        in_names, out_names = self._cfg_map[driver]
        vals = []
        for name in self._names:
            try:
                i = in_names.index(name)
            except __HOLE__:
                try:
                    i = out_names.index(name)
                except ValueError:
                    raise KeyError("input or output is missing from case: %s"
                                   % name)
                else:
                    vals.append(outputs[i])
            else:
                vals.append(inputs[i])
        return vals
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.lib/src/openmdao/lib/casehandlers/caseset.py/CaseArray._get_case_data