heagy-2018-emcyl

22 views
Skip to first unread message

Gary Hoversten

unread,
Apr 1, 2022, 5:37:02 PM4/1/22
to SimPEG
I downloaded the heagy-2018-emcyl package and installed SimPEG.  when I run any of the examples in appendix_notebooks I get the following error from the first cell below.  It looks like the version of SimPEG and the examples are not consistent with respect to dimensions.

Can anyone tell me the correct version of SimPEG to use for these examples and where to find it?

thanks

ValueError Traceback (most recent call last) ~\AppData\Local\Temp/ipykernel_17348/3815060799.py in <module> 12 13 # SimPEG and discretize ---> 14 import discretize 15 from discretize import utils 16 from SimPEG.EM import FDEM ~\anaconda3\lib\site-packages\discretize\__init__.py in <module> 30 """ 31 ---> 32 from discretize.tensor_mesh import TensorMesh 33 from discretize.cylindrical_mesh import CylMesh, CylindricalMesh 34 from discretize.curvilinear_mesh import CurvilinearMesh ~\anaconda3\lib\site-packages\discretize\tensor_mesh.py in <module> 2 3 ----> 4 from discretize.base import BaseRectangularMesh, BaseTensorMesh 5 from discretize.operators import DiffOperators, InnerProducts 6 from discretize.mixins import InterfaceMixins, TensorMeshIO ~\anaconda3\lib\site-packages\discretize\base\__init__.py in <module> 17 """ 18 ---> 19 from discretize.base.base_mesh import BaseMesh, BaseRectangularMesh 20 from discretize.base.base_tensor_mesh import BaseTensorMesh ~\anaconda3\lib\site-packages\discretize\base\base_mesh.py in <module> 7 import json 8 from scipy.spatial import KDTree ----> 9 from discretize.utils import mkvc, Identity 10 from discretize.utils.code_utils import deprecate_property, deprecate_method, as_array_n_by_dim 11 import warnings ~\anaconda3\lib\site-packages\discretize\utils\__init__.py in <module> 138 example_curvilinear_grid, volume_tetrahedron, face_info, index_cube 139 ) --> 140 from discretize.utils.interpolation_utils import interpolation_matrix, volume_average 141 from discretize.utils.coordinate_utils import ( 142 rotate_points_from_normals, ~\anaconda3\lib\site-packages\discretize\utils\interpolation_utils.py in <module> 5 6 try: ----> 7 from discretize._extensions import interputils_cython as pyx 8 9 _interp_point_1D = pyx._interp_point_1D discretize\_extensions\interputils_cython.pyx in init discretize._extensions.interputils_cython() ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject
Reply all
Reply to author
Forward
0 new messages