def _vector_to_outputs(self, vec, outputs):
    var_shape = self.metadata['var_shape']
    num_var = self.metadata['num_var']
    size = np.prod(var_shape)
    for i in range(num_var):
        y_i = vec[(size * i):(size * (i + 1))].reshape(var_shape)
        outputs[self._cycle_names['y'].format(i)] = y_i
def _vector_to_outputs(self, vec, outputs):
    var_shape = self.metadata['var_shape']
    num_var = self.metadata['num_var']
    size = np.prod(var_shape)
    for i in range(num_var):
        y_i = vec[(size * i):(size * (i + 1))].reshape(var_shape)
        outputs[self._cycle_names['y'].format(i)] = y_i