From 0a70d9db25662c435b36a937e40dc95f5ce83c58 Mon Sep 17 00:00:00 2001 From: Thibault Barnouin Date: Thu, 13 Feb 2025 17:32:02 +0100 Subject: [PATCH] specify method to be used for minimize in center search --- package/lib/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/lib/utils.py b/package/lib/utils.py index 4bc6c56..214f0f2 100755 --- a/package/lib/utils.py +++ b/package/lib/utils.py @@ -109,7 +109,7 @@ def CenterConf(mask, PA, sPA): conf[np.isfinite(PA)] = gammaincc(0.5, 0.5 * chi2[np.isfinite(PA)]) c0 = np.unravel_index(np.argmax(conf), conf.shape)[::-1] - result = minimize(chisq, c0, bounds=[(0, PA.shape[1]), (0.0, PA.shape[0])]) + result = minimize(chisq, c0, bounds=[(0, PA.shape[1]), (0.0, PA.shape[0])], method="TNC") if result.success: print("Center of emission found") else: