small improvments to displays

resolve addition of display improvments
This commit is contained in:
2025-03-07 10:48:55 +01:00
parent a0545a219f
commit bf910a9632
4 changed files with 51 additions and 181 deletions

View File

@@ -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])], method="TNC")
result = minimize(chisq, c0, bounds=[(0, PA.shape[1]), (0.0, PA.shape[0])], method="trust-constr")
if result.success:
print("Center of emission found")
else: