def METHOD_NAME(self, num_points, error):
    self.fields = ['identifier']
    for point in range(num_points):
        self.fields.extend([
            'annotation point {} X'.format(point),
            'annotation point {} Y'.format(point),
            'prediction point {} X'.format(point),
            'prediction point {} Y'.format(point)
        ])
    for metric in self.metric_names:
        if np.isscalar(error):
            self.fields.append('{}_result'.format(metric))
        else:
            self.fields.extend(['{}_result_{}'.format(metric, err_id) for err_id, _ in enumerate(error)])
    self.updated_fields = True