You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ImportError Traceback (most recent call last)
Cell In[12], line 2
1 import os
----> 2 from mtpy.utils.shapefiles import create_phase_tensor_shpfiles, create_tipper_shpfiles
4 # Define the path to your directory containing EDI files
5 edi_dir = "EDI"
ImportError: cannot import name 'get_utm_zone' from 'mtpy.utils.gis_tools' (c:\Users\pmishra\Anaconda3\envs\mtpy\lib\site-packages\mtpy\utils\gis_tools.py)
The text was updated successfully, but these errors were encountered:
@pankajkmishra Thanks for the issue, support for making shapefiles has yet been translated over to v2. Hopefully in the next few weeks. Suggest using the original version for now.
Trying to create PT & IV shapefiles from EDI directory
Gives the following error
ImportError Traceback (most recent call last)
Cell In[12], line 2
1 import os
----> 2 from mtpy.utils.shapefiles import create_phase_tensor_shpfiles, create_tipper_shpfiles
4 # Define the path to your directory containing EDI files
5 edi_dir = "EDI"
File c:\Users\pmishra\Anaconda3\envs\mtpy\lib\site-packages\mtpy\utils\shapefiles.py:11
2 """
3 Create shape files for phase tensor ellipses.
4 https://pcjericks.github.io/py-gdalogr-cookbook/vector_layers.html#create-a-new-shapefile-and-add-data
(...)
8 @author: jrpeacock
9 """
10 import mtpy.modeling.modem
---> 11 from mtpy.utils.gis_tools import project_point_ll2utm, get_utm_zone
13 try:
14 from osgeo import ogr, gdal, osr
ImportError: cannot import name 'get_utm_zone' from 'mtpy.utils.gis_tools' (c:\Users\pmishra\Anaconda3\envs\mtpy\lib\site-packages\mtpy\utils\gis_tools.py)
The text was updated successfully, but these errors were encountered: