Closed jcmefra closed 1 month ago
Try using np.atleast_2d(rhomap)
which will make it iterable. Another way could be to use a dictionary {1: 100, 2:50}
instead of a map.
Any success?
Hello, I tried a different approach but it's working fine so far, I have another question: can I define a square grid for the mesh for the iterable? I want my synthetic models to have a 64x64 grid instead of a triangle grid, so I can convert the resistivity points to a matrix. Thanks in advance.
Of course you can, using createGrid
. Please have a look at the ERT examples.
If the original problem is solved, please close the issue.
Problem description
I'm trying to generate multiple randomized synthetic datasets and getting error on random iteration.
Your environment
Please provide the output of
print(pygimli.Report())
here.Steps to reproduce
Tell us how to reproduce this issue. Ideally, you could paste the code that produces the error:
Expected behavior
To generate 15 random data
Actual behavior
It usually stops before finishing the 15 iterations, giving this output before stopping at certain iteration:
I figured out it happens when the number of layers is only one (so there's only one marker), but I don't know how to fix that. Thank you!