When calculating get_z_surface undefined values in bins inside the embedded element (i.e. protein) may arise since no z coordinates populate bins in the grid. Such undefined values spread in the array during the calculation of curvature.
One possible solution is to interpolate the bins occupied by the protein. I would avoid using pandas although that approach seems the most straightforward. Check np.interpolate.
When calculating
get_z_surfaceundefined values in bins inside the embedded element (i.e. protein) may arise since nozcoordinates populate bins in the grid. Such undefined values spread in the array during the calculation of curvature.One possible solution is to interpolate the bins occupied by the protein. I would avoid using
pandasalthough that approach seems the most straightforward. Checknp.interpolate.