docs: def convert(self, imtls, idx=0):
          """
          Convert a probability curve into a record of dtype `imtls.dt`.
  
          :param imtls: DictArray instance
          :param idx: extract the data corresponding to the given inner index
          """
          curve = numpy.zeros(1, imtls.dt)
          for imt in imtls:
              curve[imt] = self.array[imtls(imt), idx]
          return curve[0]