def METHOD_NAME(fitResults, metadata, slicesUsed=None, resultCode=-1, fitErr=None):
    if fitErr is None:
        fitErr = -5e3*numpy.ones(fitResults.shape, 'f')
    #print slicesUsed
    tIndex = metadata.tIndex
    return numpy.array([(tIndex, fitResults.astype('f'), fitErr.astype('f'), resultCode, fmtSlicesUsed(slicesUsed))], dtype=fresultdtype)