This documentation page refers to a previous release of DIALS (2.2).
Click here to go to the corresponding page for the latest version of DIALS

dials.algorithms.integration

class dials.algorithms.integration.integrator.Executor

Bases: Boost.Python.instance

process((Executor)arg1, (object)arg2, (reflection_table)arg3) → None :
C++ signature :
void process(dials::algorithms::Executor {lvalue},int,dials::af::reflection_table)

process( (Executor)arg1, (object)arg2, (reflection_table)arg3) -> None :

C++ signature :
void process(dials::algorithms::boost_python::ExecutorWrapper {lvalue},int,dials::af::reflection_table)
class dials.algorithms.integration.integrator.Integrator(experiments, reflections, params)[source]

Bases: object

The integrator class

integrate()[source]

Integrate the data

report()[source]

Return the report of the processing

summary(block_size, block_size_units)[source]

Print a summary of the integration stuff.

class dials.algorithms.integration.integrator.Integrator2D(experiments, reflections, params)[source]

Bases: dials.algorithms.integration.integrator.Integrator

Integrator for 2D algorithms

ProcessorClass

alias of dials.algorithms.integration.processor.Processor2D

static finalize_reflections(reflections, experiments, params)

A post-processing function for oscillation data.

static initialize_reflections(experiments, params, reflections)

A pre-processing class for oscillation data.

class dials.algorithms.integration.integrator.Integrator3D(experiments, reflections, params)[source]

Bases: dials.algorithms.integration.integrator.Integrator

Integrator for 3D algorithms

ProcessorClass

alias of dials.algorithms.integration.processor.Processor3D

static finalize_reflections(reflections, experiments, params)

A post-processing function for oscillation data.

static initialize_reflections(experiments, params, reflections)

A pre-processing class for oscillation data.

class dials.algorithms.integration.integrator.Integrator3DThreaded(experiments, reflections, params)[source]

Bases: object

Integrator for 3D algorithms

finalise()[source]

Finalise the integrator

initialise()[source]

Initialise the integrator

integrate()[source]

Integrate the data

report()[source]

Return the report of the processing

summary(block_size, block_size_units)[source]

Print a summary of the integration stuff.

class dials.algorithms.integration.integrator.IntegratorExecutor(experiments, profile_fitter=None)[source]

Bases: dials_algorithms_integration_integrator_ext.Executor

The class to process the integration data

data()[source]

Return data

finalize()[source]

Finalize the processing

initialize(frame0, frame1, reflections)[source]

Initialize the processing for the job

Parameters:
  • frame0 – The first frame to process
  • frame1 – The last frame to process
  • reflections – The reflections to process
process(frame, reflections)[source]

Process the reflections on a frame

Parameters:
  • frame – The frame to process
  • reflections – The reflections to process
class dials.algorithms.integration.integrator.IntegratorFactory[source]

Bases: object

A factory for creating integrators.

static create(params, experiments, reflections)[source]

Create the integrator from the input configuration.

Parameters:
  • params – The input phil parameters
  • experiments – The list of experiments
  • reflections – The reflections to integrate
Returns:

The integrator class

class dials.algorithms.integration.integrator.IntegratorFlat3D(experiments, reflections, params)[source]

Bases: dials.algorithms.integration.integrator.Integrator

Integrator for flattened 3D algorithms

ProcessorClass

alias of dials.algorithms.integration.processor.ProcessorFlat3D

static finalize_reflections(reflections, experiments, params)

A post-processing function for oscillation data.

static initialize_reflections(experiments, params, reflections)

A pre-processing class for oscillation data.

class dials.algorithms.integration.integrator.IntegratorSingle2D(experiments, reflections, params)[source]

Bases: dials.algorithms.integration.integrator.Integrator

Integrator for 2D algorithms on a single image

ProcessorClass

alias of dials.algorithms.integration.processor.ProcessorSingle2D

static finalize_reflections(reflections, experiments, params)

A post-processing function for oscillation data.

static initialize_reflections(experiments, params, reflections)

A pre-processing class for oscillation data.

class dials.algorithms.integration.integrator.IntegratorStills(experiments, reflections, params)[source]

Bases: dials.algorithms.integration.integrator.Integrator

Integrator for still algorithms

ProcessorClass

alias of dials.algorithms.integration.processor.ProcessorStills

static finalize_reflections(reflections, experiments, params)

A post-processing function for stills data.

static initialize_reflections(experiments, params, reflections)

A pre-processing class for stills data.

class dials.algorithms.integration.integrator.JobList

Bases: Boost.Python.instance

add((JobList)arg1, (object)arg2, (object)arg3, (object)arg4) → None :
C++ signature :
void add(dials::algorithms::JobList {lvalue},scitbx::af::tiny<int, 2ul>,scitbx::af::tiny<int, 2ul>,int)
shoebox_memory((JobList)arg1, (reflection_table)arg2, (object)arg3) → size_t :
C++ signature :
scitbx::af::shared<unsigned long> shoebox_memory(dials::algorithms::JobList,dials::af::reflection_table,bool)
split((JobList)arg1, (reflection_table)arg2) → None :
C++ signature :
void split(dials::algorithms::JobList,dials::af::reflection_table)
class dials.algorithms.integration.integrator.Parameters[source]

Bases: object

A class to represent the integration parameters

class Filter[source]

Bases: object

Filter parameters

class Profile[source]

Bases: object

Profile parameters

class Validation[source]

Bases: object

static from_phil(params)[source]

Convert the phil parameters

class dials.algorithms.integration.integrator.Processor2D(experiments, reflections, params)[source]

Bases: dials.algorithms.integration.processor.Processor

Top level processor for 2D processing.

class dials.algorithms.integration.integrator.Processor3D(experiments, reflections, params)[source]

Bases: dials.algorithms.integration.processor.Processor

Top level processor for 3D processing.

class dials.algorithms.integration.integrator.ProcessorFlat3D(experiments, reflections, params)[source]

Bases: dials.algorithms.integration.processor.Processor

Top level processor for flat 3D processing.

class dials.algorithms.integration.integrator.ProcessorSingle2D(experiments, reflections, params)[source]

Bases: dials.algorithms.integration.processor.Processor

Top level processor for still image processing.

class dials.algorithms.integration.integrator.ProcessorStills(experiments, reflections, params)[source]

Bases: dials.algorithms.integration.processor.Processor

Top level processor for still image processing.

class dials.algorithms.integration.integrator.ProfileModellerExecutor(experiments, profile_fitter)[source]

Bases: dials_algorithms_integration_integrator_ext.Executor

The class to do profile modelling calculations

data()[source]
Returns:the modeller
finalize()[source]

Finalize the processing

initialize(frame0, frame1, reflections)[source]

Initialise the processing for a job

Parameters:
  • frame0 – The first frame in the job
  • frame1 – The last frame in the job
  • reflections – The reflections that will be processed
process(frame, reflections)[source]

Process the data

Parameters:
  • frame – The frame being processed
  • reflections – The reflections to process
class dials.algorithms.integration.integrator.ProfileValidatorExecutor(experiments, profile_fitter)[source]

Bases: dials_algorithms_integration_integrator_ext.Executor

The class to do profile validation calculations

data()[source]
Returns:the modeller
finalize()[source]

Finalize the processing

initialize(frame0, frame1, reflections)[source]

Initialise the processing for a job

Parameters:
  • frame0 – The first frame in the job
  • frame1 – The last frame in the job
  • reflections – The reflections that will be processed
process(frame, reflections)[source]

Process the data

Parameters:
  • frame – The frame being processed
  • reflections – The reflections to process
class dials.algorithms.integration.integrator.ReflectionManager

Bases: Boost.Python.instance

accumulate((ReflectionManager)arg1, (object)arg2, (reflection_table)arg3) → None :
C++ signature :
void accumulate(dials::algorithms::ReflectionManager {lvalue},unsigned long,dials::af::reflection_table)
data((ReflectionManager)arg1) → reflection_table :
C++ signature :
dials::af::reflection_table data(dials::algorithms::ReflectionManager {lvalue})
finished((ReflectionManager)arg1) → bool :
C++ signature :
bool finished(dials::algorithms::ReflectionManager {lvalue})
job((ReflectionManager)arg1, (object)arg2) → Job :
C++ signature :
dials::algorithms::JobList::Job job(dials::algorithms::ReflectionManager {lvalue},unsigned long)
num_reflections((ReflectionManager)arg1, (object)arg2) → int :
C++ signature :
unsigned long num_reflections(dials::algorithms::ReflectionManager {lvalue},unsigned long)
split((ReflectionManager)arg1, (object)arg2) → reflection_table :
C++ signature :
dials::af::reflection_table split(dials::algorithms::ReflectionManager {lvalue},unsigned long)
dials.algorithms.integration.integrator.frame_hist(bbox, width=80, symbol='#', prefix='')[source]

A utility function to print a histogram of reflections on frames.

Parameters:
  • bbox – The bounding boxes
  • width – The width of each line
  • symbol – The histogram symbol
  • prefix – A string to prefix to each line
Returns:

The histogram string

dials.algorithms.integration.integrator.generate_phil_scope()[source]

Generate the integration phil scope.

Returns:The phil scope
dials.algorithms.integration.integrator.hist(data, width=80, symbol='#', prefix='')[source]

A utility function to print a histogram of reflections on frames.

Parameters:
  • data – The data to histogram
  • width – The number of characters in each line
  • symbol – The plot symbol
  • prefix – String to prefix to each line
Returns:

The histogram string

dials.algorithms.integration.integrator.nframes_hist(bbox, width=80, symbol='#', prefix='')[source]

A utility function to print a histogram of number of frames.

Parameters:
  • bbox – The bounding boxes
  • width – The width of each line
  • symbol – The histogram symbol
  • prefix – A string to prefix to each line
Returns:

The histogram string