-
-
Notifications
You must be signed in to change notification settings - Fork 234
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
Custom grid solution contains floats that do not cleanly convert to integer lithology identifiers #934
Comments
..So I have discovered that if I replace the integer conversion ( |
Hi @benk-mira, Apart from that I have two questions regarding your model: You create the structural frame but I think your elements are not ordered correctly. It still seems to work in this example but best order them correctly to not mess up the algorithm.
With gempy-viewer you then get: Let me know if this helps or if you have further questions. |
Thanks for getting back to me - Yes you're right - I have adapted my example here from something I cooked up elsewhere and messed up the order. I used a regular grid to simplify things for the example, but I am interested in the custom grid primarily to be able to pass octree mesh centers in and get models I can use for geophysical simulation with SimPEG. I do have one more question. While looking into this issue, I couldn't seem to find a straightforward way to access Gempys internal octree cells centers and the computed solution on those centers. Any suggestions for this? I'll use the round solution for now, but look for an update in the future. My initial results with Gempy have been very positive overall, and I'm looking forward to exploring more! Cheers, |
The octree result is a little hidden: You can find the coordinates in The following code (using pyvista, gives you a plot of the centers with their corresponding lith block value:
|
I have used the
set_custom_grid
method to compute solutions on a pre-existing grid. I am retrieving the solution fromSolutions.raw_arrays.custom
but I find that the solution is all floats and contains values that are not clearly in one of the categories:Many of the floats are close to one of the integer values and converting to integer takes care of most of issues, but I am left with some bad values in the array:
I expected that the solution in the custom array would be integer valued.
Here is my code to reproduce the slice of data pictured above.
I'm running Windows11.
The text was updated successfully, but these errors were encountered: