Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exploit improved CCTBX 'counting_sorted' binning algorithm #1130

Merged
merged 5 commits into from
Feb 5, 2020

Conversation

benjaminhwilliams
Copy link
Member

@benjaminhwilliams benjaminhwilliams commented Feb 3, 2020

Propagate changes to the counting_sorted binning algorithm in cctbx.miller, introduced in cctbx/cctbx_project#435. This handles small reflection counts better in dials.util.resolutionizer, since it prevents the creation of empty bins.

Fixes #1097.

Also catch cases where estimates of the constant cc_sig_fac in dials.algorithms.symmetry.laue_group.LaueGroupAnalysis._estimate_cc_sig_fac are ill-defined for small numbers of reflections. In such cases, cc_sig_fac is simply set to zero.

Co-Authored-By: Richard Gildea richard.gildea@diamond.ac.uk

Copy link
Contributor

@jbeilstenedmands jbeilstenedmands left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, i'll keep in mind to try and do similar in scaling etc

@benjaminhwilliams benjaminhwilliams merged commit 6f80099 into master Feb 5, 2020
@benjaminhwilliams benjaminhwilliams deleted the counting_sorted branch February 5, 2020 11:35
benjaminhwilliams added a commit that referenced this pull request Feb 5, 2020
Propagate changes to the `counting_sorted` binning algorithm in `cctbx.miller`, introduced in cctbx/cctbx_project#435.  This handles small reflection counts better in `dials.util.resolutionizer`, since it prevents the creation of empty bins.

Fixes #1097.

Also catch cases where estimates of the constant `cc_sig_fac` in `dials.algorithms.symmetry.laue_group.LaueGroupAnalysis._estimate_cc_sig_fac` are ill-defined for small numbers of reflections.  In such cases, `cc_sig_fac` is simply set to zero.

Co-Authored-By: Richard Gildea <richard.gildea@diamond.ac.uk>
(cherry picked from commit 6f80099)
@Anthchirp Anthchirp mentioned this pull request Feb 5, 2020
Anthchirp added a commit that referenced this pull request Feb 10, 2020
* Make resolution estimation more stable in presence of ice and powder rings and with small molecule data (#1097)
* Fix spot finding and integration of files with index 0 (#1128, cctbx/dxtbx#133)
* Fix cutoff value on recent data files from DLS I03 (cctbx/dxtbx#136)
* Reduce memory usage when writing .refl files (#1115)
* `dials.integrate`: Fix broken memory check in cases of high multiplicity (#1121)
* `dials.symmetry`: Prevent failures when dealing with small numbers of reflections (#1130, cctbx/cctbx_project#435)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

dials.util.resolutionizer.Resolutionizer sometimes fails with empty resolution bins
3 participants