dials.algorithms.spot_prediction

class dials.algorithms.spot_prediction.reflection_predictor.ReflectionPredictor(experiment, dmin=None, dmax=None, margin=1, force_static=False, padding=0)[source]

Bases: object

A reflection predictor that takes a number of experiments and does the proper prediction for each type of experiment.

__init__(experiment, dmin=None, dmax=None, margin=1, force_static=False, padding=0)[source]

Initialise a predictor for each experiment.

Parameters:
  • experiment – The experiment to predict for

  • dmin – The maximum resolution

  • dmax – The minimum resolution

  • margin – The margin of hkl to predict

  • force_static – force scan varying prediction to be static

predictor(index)[source]

Get the predictor for the given experiment index.

Parameters:

index – The experiment index

Returns:

The predictor