

def record_derivatives(self, derivs, metadata):
    'Writes the derivatives that were calculated for the driver.\n\n        Args\n        ----\n        derivs : dict\n            Dictionary containing derivatives\n\n        metadata : dict, optional\n            Dictionary containing execution metadata (e.g. iteration coordinate).\n        '
    iteration_coordinate = ikey['coord']
    timestamp = metadata['timestamp']
    write = self.out.write
    fmat = 'Timestamp: {0!r}\n'
    write(fmat.format(timestamp))
    fmat = 'Iteration Coordinate: {0:s}/Derivs\n'
    write(fmat.format(format_iteration_coordinate(iteration_coordinate)))
    self._write_success_info(metadata)
    write('Derivatives:\n')
    if isinstance(derivs, dict):
        for (okey, sub) in sorted(iteritems(derivs)):
            for (ikey, deriv) in sorted(iteritems(sub)):
                write('  {0} wrt {1}: {2}\n'.format(okey, ikey, str(deriv)))
    else:
        write('  {0} \n'.format(str(derivs)))
    self.out.flush()

dataset/ETHPy150Open OpenMDAO/OpenMDAO/openmdao/recorders/dump_recorder.py DumpRecorder.record_derivatives/VarMisuse@18/107 `metadata`->`ikey`