openmdao/core/problem.py
def load_case(self, case):
        """
        Pull all input and output variables from a case into the model.

        Parameters
        ----------
        case : Case object
            A Case from a CaseRecorder file.
        """
        inputs = case.inputs if case.inputs is not None else None
        if inputs:
            for name in inputs.absolute_names():
                if name not in self.model._var_abs_names['input']:
                    raise KeyError("Input variable, '{}', recorded in the case is not "
                                   "found in the model".format(name))
                self[name] = inputs[name]

        outputs = case.outputs if case.outputs is not None else None
        if outputs:
            for name in outputs.absolute_names():
                if name not in self.model._var_abs_names['output']:
                    raise KeyError("Output variable, '{}', recorded in the case is not "
                                   "found in the model".format(name))
                self[name] = outputs[name]

        return

        Pull all input and output variables from a case into the model.

        Parameters
        ----------
        case : Case object
            A Case from a CaseRecorder file.
        
Pull all input and output variables from a case into the model.
Parameters

case : Case object
A Case from a CaseRecorder file.
Pull all input and output variables from a case into the model . Parameters case : Case object A Case from a CaseRecorder file .
def load_case(self, case):
        inputs = case.inputs if case.inputs is not None else None
        if inputs:
            for name in inputs.absolute_names():
                if name not in self.model._var_abs_names['input']:
                    raise KeyError("Input variable, '{}', recorded in the case is not "
                                   "found in the model".format(name))
                self[name] = inputs[name]
        outputs = case.outputs if case.outputs is not None else None
        if outputs:
            for name in outputs.absolute_names():
                if name not in self.model._var_abs_names['output']:
                    raise KeyError("Output variable, '{}', recorded in the case is not "
                                   "found in the model".format(name))
                self[name] = outputs[name]
        return
def load_case ( self , case ) : inputs = case . inputs if case . inputs is not None else None if inputs : for name in inputs . absolute_names ( ) : if name not in self . model . _var_abs_names [ 'input' ] : raise KeyError ( "Input variable, '{}', recorded in the case is not " "found in the model" . format ( name ) ) self [ name ] = inputs [ name ] outputs = case . outputs if case . outputs is not None else None if outputs : for name in outputs . absolute_names ( ) : if name not in self . model . _var_abs_names [ 'output' ] : raise KeyError ( "Output variable, '{}', recorded in the case is not " "found in the model" . format ( name ) ) self [ name ] = outputs [ name ] return
Pull all input and output variables from a case into the model.
Pull all input and output variables from a case into the model .
"""
        Pull all input and output variables from a case into the model.

        Parameters
        ----------
        case : Case object
            A Case from a CaseRecorder file.
        """
self
case