Skip to content

Commit

Permalink
Add news
Browse files Browse the repository at this point in the history
  • Loading branch information
jbeilstenedmands committed May 21, 2024
1 parent 43a12c2 commit 310747b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions newsfragments/XXX.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
``dials.cosym``: Make function return structure correct in recently added cc_weights option
2 changes: 1 addition & 1 deletion src/dials/algorithms/scaling/scaling_library.py
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ def weighted_cchalf(
sx = flex.sum(flex.pow2(dx) * norm_jw)
sy = flex.sum(flex.pow2(dy) * norm_jw)
if sx == 0.0 or sy == 0.0:
return [(None, 0)]
return [(None, 1)]
# effective sample size of weighted sample
# Kish, Leslie. 1965. Survey Sampling New York: Wiley. (R documentation)
# neff = sum(w)^2 / sum(w^2). But sum(w) == 1 as normalised already
Expand Down

0 comments on commit 310747b

Please sign in to comment.