Skip to content

Commit 01a295c

Browse files
author
Jawad Chowdhury
committed
fixing bound strictly outside min/max value constraint
1 parent c20bdce commit 01a295c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

BGlib/misc/jc2_bg_gui.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -501,8 +501,8 @@ def on_do_loop_guess(self):
501501
)
502502
self.loop_fitter.do_guess()
503503
prior = self.loop_fitter.prior # shape (n_guess, 9)
504-
lower_bounds1 = np.min(prior, axis=0)
505-
upper_bounds1 = np.max(prior, axis=0)
504+
lower_bounds1 = np.min(prior, axis=0) - 1e-5
505+
upper_bounds1 = np.max(prior, axis=0) + 1e-5
506506
lower_bounds2 = np.array(self.loop_default_lower, dtype=float)
507507
upper_bounds2 = np.array(self.loop_default_upper, dtype=float)
508508
lower_bounds = np.minimum(lower_bounds1, lower_bounds2)

0 commit comments

Comments
 (0)