src/utilities.py
def move_array_centre(array, centre):
	"""
	move_array_centre(array, centre)

	Move top left corner of ND array to centre index
	"""

	n_dim = np.array(centre).shape[0]

	for i, ax in enumerate(range(n_dim)): array = np.roll(array, centre[i], axis=ax)

	return array

	move_array_centre(array, centre)

	Move top left corner of ND array to centre index
	
move_array_centre(array, centre)
Move top left corner of ND array to centre index
move_array_centre ( array centre ) Move top left corner of ND array to centre index
def move_array_centre(array, centre):
	n_dim = np.array(centre).shape[0]
	for i, ax in enumerate(range(n_dim)): array = np.roll(array, centre[i], axis=ax)
	return array
def move_array_centre ( array , centre ) : n_dim = np . array ( centre ) . shape [ 0 ] for i , ax in enumerate ( range ( n_dim ) ) : array = np . roll ( array , centre [ i ] , axis = ax ) return array
move_array_centre(array, centre)
Move top left corner of ND array to centre index
move_array_centre ( array centre ) Move top left corner of ND array to centre index
"""
	move_array_centre(array, centre)

	Move top left corner of ND array to centre index
	"""
array
centre