Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interpolate fails when connected only to holes with NaN values #3

Open
Duke-of-Lizard opened this issue Mar 16, 2021 · 1 comment
Open

Comments

@Duke-of-Lizard
Copy link
Contributor

Duke-of-Lizard commented Mar 16, 2021

the interpolate method fails when it's connected to points that are also being interpolated. Should this process be iterative such that they all eventually get valid values?

def interpolate_vertices(tri, to_interpolate_idxs):

Figure 1

This figure was generated in this notebook:
https://github.com/emerald-geomodelling/project-21003_NO_BaneNOR_Fre16_ReInterp/blob/master/21003_Jupyter010_Bedrock_triangulated_boreholes.ipynb

These are the lines you need to reactivate to reproduce the error that I had:

# #compute interpolated Z are non-confirmatory points
# tri_int = emeraldtriangles.refine_mesh.interpolate_vertices(tri, mask_stop.index[~mask_stop])
# tri['vertices'].loc[~mask_stop, 'Z_interp'] = tri_int['vertices'].loc[~mask_stop, 'Z']
@redhog
Copy link
Member

redhog commented Apr 29, 2022

Yes :S

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants