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] Missing "selection" argument in bulk_solvent::k_mask_and_k_overall_grid_search #654

Open
sizmailov opened this issue Sep 9, 2021 · 1 comment · May be fixed by #692
Open

[BUG] Missing "selection" argument in bulk_solvent::k_mask_and_k_overall_grid_search #654

sizmailov opened this issue Sep 9, 2021 · 1 comment · May be fixed by #692

Comments

@sizmailov
Copy link

Hi!

I believe there is an error in bulk_solvent::k_mask_and_k_overall_grid_search procedure.

1. k_overall should be calculated over selection (i.e. "work set"), not whole set of reflexes

FloatType k_overall = scale(f_obs, f_model.const_ref());

should be

     FloatType k_overall = scale(f_obs, f_model.const_ref(), selection);

2.k_overall_best does not correspond to r_best if no better R-factor found in the following grid search. Like I mentioned above selection should be used in this case too.

FloatType k_overall_best = 1.0;
FloatType r_best = r_factor(f_obs, f_calc);

should be

   FloatType k_overall_best = scale(f_obs, f_calc, selection);
   FloatType r_best = r_factor(f_obs, f_calc, selection, k_overall_best);

Note: Probably it would be a good idea to remove selection function argument (i.e. require users to pass already pre-selected arrays)

@bkpoon
Copy link
Member

bkpoon commented Sep 9, 2021

Let's ping @pafonine and @olegsobolev , but they are currently on vacation until the end of September.

sizmailov added a commit to sizmailov/cctbx_project that referenced this issue Dec 1, 2021
@sizmailov sizmailov linked a pull request Dec 1, 2021 that will close this issue
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.

2 participants