ToolPythonBeginner Minimization with scipy.optimize.minimize: the shape of a seven-atom cluster apex = np.flatnonzero((dist < 1.3).sum(axis=1) == 6)ring = np.flatnonzero((dist < 1.3).sum(axis=1) == 4)