@staticmethod
def from_predictions(experiment, dmin=None, dmax=None, margin=1,
    force_static=False, padding=0):
    """
        Construct a reflection table from predictions.

        :param experiment: The experiment to predict from
        :param dmin: The maximum resolution
        :param dmax: The minimum resolution
        :param margin: The margin to predict around
        :param force_static: Do static prediction with a scan varying model
        :param padding: Padding in degrees
        :return: The reflection table of predictions

        """
    if experiment.profile is not None:
        return experiment.profile.predict_reflections(experiment.imageset,
            experiment.crystal, experiment.beam, experiment.detector,
            experiment.goniometer, experiment.scan, dmin=dmin, dmax=dmax,
            margin=margin, force_static=force_static, padding=padding)
    from dials.algorithms.spot_prediction.reflection_predictor import ReflectionPredictor
    predict = ReflectionPredictor(experiment, dmin=dmin, dmax=dmax, margin=
        margin, force_static=force_static, padding=padding)
    return predict()
