When computing the uv-mask with the function grid_uv_samples the resulting mask appears to be rotated (flipped) with respect to the uv sampling points scattered with the function plot_baselines.
I think this might be related to the fact that plt.imshow() sets the (0,0) coordinate at the top left instead of bottom left thus, inverting the direction of the y-axis.
When computing the uv-mask with the function
grid_uv_samples
the resulting mask appears to be rotated (flipped) with respect to the uv sampling points scattered with the functionplot_baselines
.The uv samples
The uv mask