Skip to content

Commit

Permalink
Catch None in arrays supplied to the minimizer
Browse files Browse the repository at this point in the history
  • Loading branch information
pafonine committed Sep 28, 2024
1 parent 890188d commit 5ca82bb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cctbx/maptbx/bcr/bcr.py
Original file line number Diff line number Diff line change
Expand Up @@ -626,8 +626,10 @@ def RefineBCR(dens,dist,bpeak,cpeak,rpeak,npeak,bmin,cmin,rmin,nfmes):
lbound = []
ubound = []
for b in bcrbounds:
lbound.append(b[0])
ubound.append(b[1])
b0,b1=b[0],b[1]
assert b0 is not None and b1 is not None
lbound.append(b0)
ubound.append(b1)
res = minimizer_bound(
calculator = CALC,
use_bounds = 2,
Expand Down

0 comments on commit 5ca82bb

Please sign in to comment.