randlab / geone Goto Github PK
View Code? Open in Web Editor NEWDeeSse interface, utilities and examples
License: Other
DeeSse interface, utilities and examples
License: Other
I was importing geone. It works with my desktop but with the laptop, after re-installing I had this problem in my laptop:
from geone import img
import geone.imgplot as imgplt
from geone.deesse_core.deesse import MPDS_MISSING_VALUE
from data_loader_128 import DataLoader
import numpy as np
import matplotlib.pyplot as plt
from sklearn.metrics import mean_squared_error
ImportError Traceback (most recent call last)
~\Anaconda3\lib\site-packages\geone\deesse_core\deesse.py in swig_import_helper()
13 try:
---> 14 return importlib.import_module(mname)
15 except ImportError:
~\Anaconda3\lib\importlib_init_.py in import_module(name, package)
126 level += 1
--> 127 return _bootstrap._gcd_import(name[level:], package, level)
128
~\Anaconda3\lib\importlib_bootstrap.py in _gcd_import(name, package, level)
~\Anaconda3\lib\importlib_bootstrap.py in find_and_load(name, import)
~\Anaconda3\lib\importlib_bootstrap.py in find_and_load_unlocked(name, import)
~\Anaconda3\lib\importlib_bootstrap.py in _load_unlocked(spec)
~\Anaconda3\lib\importlib_bootstrap.py in module_from_spec(spec)
~\Anaconda3\lib\importlib_bootstrap_external.py in create_module(self, spec)
~\Anaconda3\lib\importlib_bootstrap.py in _call_with_frames_removed(f, *args, **kwds)
ImportError: DLL load failed: The specified module could not be found.
During handling of the above exception, another exception occurred:
ModuleNotFoundError Traceback (most recent call last)
in
1 from geone import img
2 import geone.imgplot as imgplt
----> 3 from geone.deesse_core.deesse import MPDS_MISSING_VALUE
4 from predict_validate_128 import predictGan
5 from data_loader_128 import DataLoader
~\Anaconda3\lib\site-packages\geone\deesse_core\deesse.py in
15 except ImportError:
16 return importlib.import_module('_deesse')
---> 17 _deesse = swig_import_helper()
18 del swig_import_helper
19 elif _swig_python_version_info >= (2, 6, 0):
~\Anaconda3\lib\site-packages\geone\deesse_core\deesse.py in swig_import_helper()
14 return importlib.import_module(mname)
15 except ImportError:
---> 16 return importlib.import_module('_deesse')
17 _deesse = swig_import_helper()
18 del swig_import_helper
~\Anaconda3\lib\importlib_init_.py in import_module(name, package)
125 break
126 level += 1
--> 127 return _bootstrap._gcd_import(name[level:], package, level)
128
129
ModuleNotFoundError: No module named '_deesse'
Hello Julien,
I tried to used the function gn.imgplot3d.drawImage3D_surface
to plot one of my 3D images, but there might be an issue related to how the origin is handled. The issue can be easily reproduced by using:
ti3dj = gn.img.readImageGslib("ti_3d.gslib")
gn.imgplot3d.drawImage3D_surface(ti3dj, text='TI', scalar_bar_kwargs={'vertical':True})
with the TI provided in the examples directory. The line above works fine if the origin in the GSLIB file is set to 0.5 0.5 0.5
. However, if I try with 0.0 0.0 0.0
as origin nothing is shown in the plot. Actually, an image is shown as long as I choose values different from 0.0, but it looks like the scaling is somehow affected instead of the origin.
Hope this helps.
Cheers,
Hello Julien,
I experienced a invalid syntax
problem with the last version of geone
. I've tried a quick comparison with the previous version, but I find it a little hard at a first sight to pin the error. Do you have some suggestion?
The error that I get (installing with the standard procedure geone
in a clean virtual environment with Python 3.10.12, and running an import geone
outside the installation folder...) is the following:
import geone
Traceback (most recent call last):File ~/.virtualenvs/test_geone/lib/python3.10/site-packages/IPython/core/interactiveshell.py:3553 in run_code
exec(code_obj, self.user_global_ns, self.user_ns)Cell In[15], line 1
import geoneFile ~/.virtualenvs/test_geone/lib/python3.10/site-packages/geone/init.py:9
from . import geosclassicinterfaceFile ~/.virtualenvs/test_geone/lib/python3.10/site-packages/geone/geosclassicinterface.py:1676
x_agg = im_tmp.xx()[*ind_agg].reshape(-1, 1)
^
SyntaxError: invalid syntax
It seems that is does not like the asterisk in *ind_agg
.
Thank you in advance and happy new year!
Alessandro
I am a newcomer to the field of multiple-point geostatistics with a keen interest in understanding the various methods used in this domain. I have come across terms such as SNESIM, GENESIM, and DeeSse, which seem to represent different approaches within multiple-point geostatistics.
My understanding is that multiple-point geostatistical algorithms are commonly used to characterize reservoir structures. As reservoir characterization often involves dealing with categorical variables, I am curious to know if these methods can be extended to model continuous variables, specifically in establishing a continuous permeability field for a given site.
I would greatly appreciate it if you could provide insights on the following questions:
What are the other types of multiple-point geostatistical methods, and to which category does direct sampling belong? Which method is considered more practical?
Can multiple-point geostatistical methods be utilized to construct a continuous permeability field?
If so, are the above-mentioned methods (SNESIM, GENESIM, DeeSse) applicable to modeling continuous variables, or does their suitability depend on the algorithm used or the training image employed?
Probably due to a deprecattion of numpy but when I try to use the estimateIndicator2D function when passing 1D covariance models, I get the following error message:
I have tried other numpy versions (1.24, 1.25, 1.26) but all returns the same error message. A simple solution consist in avoiding this line of code by already converting the covariance models in 2D but could be great to fix, probably that this error is not limited to this specific case. I suggest using copy.deepcopy
in place of np.deepcopy
.
config:
windows 10
geone 1.2.6
numpy 1.26.4
Hi!
Great work this package, thanks! Are there any plans on supporting DEESSE for the MacOS platform?
Would be happy to help testing :)
Cheers,
Raoul
Hello guys, I've sent two emails to philippe.renard --at-- unine.ch regarding the DeeSee license for using geone on a commercial setting. Can you guys confirm the email to discuss this issue? Is there another person I can contact?
Regards
Please help. I encoutered the following error when I called geone after installation. Thank you
ImportError Traceback (most recent call last)
File ~.conda\envs\archpyenv\lib\site-packages\geone\deesse_core\deesse.py:14, in swig_import_helper()
13 try:
---> 14 return importlib.import_module(mname)
15 except ImportError:
File ~.conda\envs\archpyenv\lib\importlib_init_.py:127, in import_module(name, package)
126 level += 1
--> 127 return _bootstrap._gcd_import(name[level:], package, level)
File :1014, in _gcd_import(name, package, level)
File :991, in find_and_load(name, import)
File :975, in find_and_load_unlocked(name, import)
File :657, in _load_unlocked(spec)
File :556, in module_from_spec(spec)
File :1166, in create_module(self, spec)
File :219, in _call_with_frames_removed(f, *args, **kwds)
ImportError: DLL load failed while importing _deesse: The specified module could not be found.
During handling of the above exception, another exception occurred:
ModuleNotFoundError Traceback (most recent call last)
Cell In[10], line 6
4 import sys
5 import pyvista as pv
----> 6 import geone
7 import geone.covModel as gcm
8 import ArchPy
File ~.conda\envs\archpyenv\lib\site-packages\geone_init_.py:8
6 from . import covModel
7 from . import customcolors
----> 8 from . import deesseinterface
9 from . import geosclassicinterface
10 from . import grf
File ~.conda\envs\archpyenv\lib\site-packages\geone\deesseinterface.py:17
14 import multiprocessing
16 from geone import img, blockdata
---> 17 from geone.deesse_core import deesse
18 from geone.img import Img, PointSet
19 from geone.blockdata import BlockData
File ~.conda\envs\archpyenv\lib\site-packages\geone\deesse_core\deesse.py:17
15 except ImportError:
16 return importlib.import_module('_deesse')
---> 17 _deesse = swig_import_helper()
18 del swig_import_helper
19 elif _swig_python_version_info >= (2, 6, 0):
File ~.conda\envs\archpyenv\lib\site-packages\geone\deesse_core\deesse.py:16, in swig_import_helper()
14 return importlib.import_module(mname)
15 except ImportError:
---> 16 return importlib.import_module('_deesse')
File ~.conda\envs\archpyenv\lib\importlib_init_.py:127, in import_module(name, package)
125 break
126 level += 1
--> 127 return _bootstrap._gcd_import(name[level:], package, level)
ModuleNotFoundError: No module named '_deesse'
HI
I created a new conda pyhton 3.9 environment and installed geone using
python3 -m pip install .
After that I failed to import geone: I got this:
(randlab) tmeha@RYZEN:/mnt/d/PROGRAMMING/GITHUB/geone$ python3
Python 3.9.7 (default, Sep 16 2021, 13:09:58)
[GCC 7.5.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
import geone as ge
Traceback (most recent call last):
File "", line 1, in
File "/mnt/d/PROGRAMMING/GITHUB/geone/geone/init.py", line 5, in
import geone.deesseinterface
File "/mnt/d/PROGRAMMING/GITHUB/geone/geone/deesseinterface.py", line 17, in
from geone.deesse_core import deesse
ImportError: cannot import name 'deesse' from 'geone.deesse_core' (unknown location)
Any idea what the problem is?
See you
DEESSE CAN BE RUN ONLY WITH SMALL SIMULATION GRID (max. 2500 cells)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.