def _centre(x, oshape):
 start = (((np.array(x.shape) - np.array(oshape)) // 2) + 1)
 out = x[[slice(s, (s + n)) for (s, n) in zip(start, oshape)]]
 return out

def _centre ( x , oshape ) : start = ( ( ( np . array ( x . shape ) - np . array ( oshape ) ) // 2 ) + 1 ) out = x [ [ slice ( s , ( s + n ) ) for ( s , n ) in zip ( start , oshape ) ] ] return out
return an array of oshape from the centre of x .