Add individual and grouped error model refinement in dials.scale #1684
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I have found that optimising a separate error model for individual sweeps (or groups of sweeps for a multiple inverse-beam data collection) can improve data quality for phasing and refinement and give more reasonable error model parameters.
This PR adds these options, although keeps the default behaviour the same for now (one combined error model for all sweeps). I plan to do further testing once this is in to determine what might be sensible auto-determined behaviour (e.g. individual error models for multiple full sweeps, combined error model for multi-crystal data or small molecule experiments).
error_model.grouping=individual
: One error model optimised per sweeperror_model.grouping=grouped error_model_group=0,1 error_model_group=2,3
: Determine a shared error model for sweeps 0 & 1, a different shared error model for sweeps 2 & 3 etc. Intended for inverse-beam experiments.error_model.grouping=combined
: One error model optimised for the whole dataset (current behaviour).