Extensions

class dials.extensions.simple_background_ext.SimpleBackgroundExt(params, experiments)[source]

Bases: object

An extension class implementing simple background subtraction.

__init__(params, experiments)[source]

Initialise the algorithm.

Parameters:
  • params – The input parameters

  • experiments – The list of experiments

compute_background(reflections, image_volume=None)[source]

Compute the background.

Parameters:

reflections – The list of reflections

name = 'simple'
static phil()[source]
class dials.extensions.null_background_ext.NullBackgroundExt(params, experiments)[source]

Bases: object

An extension class implementing Null background subtraction.

__init__(params, experiments)[source]

Initialise the algorithm.

Parameters:
  • params – The input phil parameters

  • experiments – The experiment list

compute_background(reflections, image_volume=None)[source]

Compute the background.

Parameters:

reflections – The list of reflections

name = 'null'
class dials.extensions.dispersion_spotfinder_threshold_ext.DispersionSpotFinderThresholdExt(params)[source]

Bases: object

Extensions to do dispersion threshold.

__init__(params)[source]

Initialise the algorithm.

Parameters:

params – The input parameters

compute_threshold(image, mask, **kwargs)[source]

Compute the threshold.

Parameters:
  • image – The image to process

  • mask – The pixel mask on the image

**kwargs:

Arbitrary keyword arguments

Returns:

A boolean mask showing foreground/background pixels

name = 'dispersion'
static phil()[source]
dials.extensions.dispersion_spotfinder_threshold_ext.estimate_global_threshold(image, mask=None, plot=False)[source]
class dials.extensions.simple_centroid_ext.SimpleCentroidExt(params, experiments)[source]

Bases: object

An extension class implementing a simple centroid algorithm.

__init__(params, experiments)[source]

Initialise the algorithm.

Parameters:
  • params – The input phil parameters

  • experiments – The experiment list

compute_centroid(reflections, image_volume=None)[source]

Compute the centroid.

Parameters:

reflections – The list of reflections

default = True
name = 'simple'
class dials.extensions.gaussian_rs_profile_model_ext.GaussianRSProfileModelExt[source]

Bases: object

An extension class implementing a reciprocal space gaussian profile model.

static algorithm()[source]
default = True
classmethod from_dict(d)[source]
name = 'gaussian_rs'
static phil()[source]