etspy.align.get_coms(stack: TomoStack, slices: ndarray) → ndarray[source] Calculate the center of mass for indicated slices. Parameters:¶ stack: TomoStack¶Tilt series from which to calculate the centers of mass. slices: ndarray¶Location of slices to use for center of mass calculation. Returns:¶ Center of mass as a function of tilt for each slice [ntilts, nslices]. Return type:¶ ndarray