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

[BUG] Incorrect division in k_mask_grid_search #663

Open
sizmailov opened this issue Oct 5, 2021 · 0 comments · May be fixed by #691
Open

[BUG] Incorrect division in k_mask_grid_search #663

sizmailov opened this issue Oct 5, 2021 · 0 comments · May be fixed by #691

Comments

@sizmailov
Copy link

sizmailov commented Oct 5, 2021

R-factor of (f_obs/k, f_model) is not equivalent to R-factor of (f_obs, f_model*k) (where k is an array with non-equal elements). Therefore I believe the next snippet contains an error:

bulk_solvent.k_mask_and_k_overall_grid_search(
f_obs.data()/k_total_,
core.f_calc.data(),
core.f_mask().data(),
k_mask_trial_range,
selection_use)

Corrected code should be something like:

        bulk_solvent.k_mask_and_k_overall_grid_search(
          f_obs.data(),
          core.f_calc.data() * k_total_,
          core.f_mask().data() * k_total_,
          k_mask_trial_range,
          selection_use)

@pafonine @olegsobolev

sizmailov added a commit to sizmailov/cctbx_project that referenced this issue Dec 1, 2021
@sizmailov sizmailov changed the title [BUG] Incorrect division in k_mask_and_k_overall_grid_search [BUG] Incorrect division in k_mask_grid_search Dec 1, 2021
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 a pull request may close this issue.

1 participant