MTgeophysics / mtpy

Python toolbox for standard Magnetotelluric (MT) data analysis
GNU General Public License v3.0
147 stars 66 forks source link

FutureWarning often appear #156

Open charlesweijun opened 2 years ago

charlesweijun commented 2 years ago

there is always a FutureWarning statement when running ModEM model buildup

Expected Behavior

The statement will disppear.

Current Behavior

The Console show the warings as follow: C:\Users\lenovo.conda\envs\wilson37\lib\site-packages\pyproj\crs\crs.py:280: FutureWarning: '+init=:' syntax is deprecated. ':' is the preferred initialization method. When making the change, be mindful of axis order changes: https://pyproj4.github.io/pyproj/stable/gotchas.html#axis-order-changes-in-proj-6 projstring = _prepare_from_string(projparams)

Possible Solution

Steps to Reproduce (for bugs)

1. 2. 3. 4.

# Paste your code here
#
#

Context

Your Environment

  • Operating system: windows 10
  • MtPy version:
  • Python version: 3.7.10
  • Matplotlib version:3.2.1
  • Matplotlib backend (print(matplotlib.get_backend())):
  • QT version:

Installed Python Packages: use pip freeze or conda list [-n ENVIRONMENT_NAME] to list all the installed libraries.

pyproj==1.9.6

obspy==1.1.0

sphinx>=1.8.3

kujaku11 commented 2 years ago

@charlesweijun This is a warning that comes with newer versions of pyproj. We will need to go through and update gis_tools and all functions that use pyproj to get rid of this warning, probably won't happen quickly.