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
Simulate called with wrong resistivity array. #681
Comments
When opening a new issue, there is a template to be filled, e.g. specifying the version number etc. so that anyone can got a basis to help. In your code, obviously |
Yes you are right..next time i will be careful/ |
So |
The Total number of resistivity values: 238992 |
it is numpy array. |
The length should match the cell number |
output:Total number of resistivity values: 65536 Then in next step I Remove extra dimensions from the resistivity image
what is the issue that cell count 65025 is different than total number of resistivity values in the squeezed image: 65536. |
I have no idea what you're doing. Apparent resistivity is not a resistivity distribution but just a colored data table. At any rate, for creating a mesh, you specify the edge positions. If you want to have 256 cells in each row, you need
to make x and y 257 long and the mesh 256x256=65536. Otherwise you end up in 255x255=65025. |
Actully i am trying to perform inversion through machine learning. For this purpose i am following the methdology of |
ERROR:BaseException Traceback (most recent call last)
Cell In[53], line 3
1 scheme = ert.createData(elecs=np.linspace(start=200, stop=300, num=21),
2 schemeName='dd')
----> 3 data = ert.simulate(mesh, scheme=scheme, res=resistivity_values, noiseLevel=1,
4 noiseAbs=1e-6, seed=1337)
6 pg.info(np.linalg.norm(data['err']), np.linalg.norm(data['rhoa']))
7 pg.info('Simulated data', data)
File ~.conda\envs\pg\Lib\site-packages\pygimli\physics\ert\ert.py:215, in simulate(mesh, scheme, res, **kwargs)
213 print(mesh)
214 print("res: ", res)
--> 215 raise BaseException(
216 "Simulate called with wrong resistivity array.")
218 if not isArrayData:
219 ret['rhoa'] = rhoa
BaseException: Simulate called with wrong resistivity array.
The text was updated successfully, but these errors were encountered: