docs: def loss_maps(curves, conditional_loss_poes):
      """
      :param curves: an array of loss curves
      :param conditional_loss_poes: a list of conditional loss poes
      :returns: a composite array of loss maps with the same shape
      """
      loss_maps_dt = numpy.dtype([('poe-%s' % poe, F32)
                                  for poe in conditional_loss_poes])
      loss_maps = numpy.zeros(curves.shape, loss_maps_dt)
      for idx, curve in numpy.ndenumerate(curves):
          for poe in conditional_loss_poes:
              loss_maps['poe-%s' % poe][idx] = conditional_loss_ratio(
                  curve['losses'], curve['poes'], poe)
      return loss_maps