Closed roshanmanjitsingh closed 3 years ago
Hi Roshan, @roshanmanjitsingh
Thank you for your enquiry. I will pass the issue to @alkirkby to have a look.
Hi @roshanmanjitsingh, I can't seem to reproduce your error. Are you adding 0.000000E+0 to all of the Z fields? You could try using a no-data-value of 1.000000e+32 and setting EMPTY=1.0e+32 in the header. Alternatively, if you could provide your code and edi files I can look into it for you.
Dear
Thanks for your reply. Please find the attached EDI file and the script that I have been using. I have also applied the changes suggested by you but it doesn't work.
Thanks
Best regards Roshan Kumar Singh DAAD Alumnus, 2018-19, (GFZ, Potsdam, Germany) Ph.D. Applied Geophysics Department of Applied Geophysics Indian Institute Of Technology (ISM) Dhanbad, 826004
On Tue, Mar 23, 2021 at 10:04 AM Alison Kirkby @.***> wrote:
Hi @roshanmanjitsingh https://github.com/roshanmanjitsingh, I can't seem to reproduce your error. Are you adding 0.000000E+0 to all of the Z fields? You could try using a no-data-value of 1.000000e+32 and setting EMPTY=1.0e+32 in the header. Alternatively, if you could provide your code and edi files I can look into it for you.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/MTgeophysics/mtpy/issues/139#issuecomment-804609763, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASUZUYD42SW34TBPTZARUPLTFAK5LANCNFSM4ZIUW7MA .
I can't see the files. Can you zip them up and email them to me?
Dear Alison
Please find the attached edi file and script.
Thanks and regards Roshan Kumar Singh DAAD Alumnus, 2018-19, (GFZ, Potsdam, Germany) Ph.D. Applied Geophysics Department of Applied Geophysics Indian Institute Of Technology (ISM) Dhanbad, 826004
On Wed, Mar 24, 2021 at 4:24 AM Alison Kirkby @.***> wrote:
I can't see the files. Can you zip them up and email them to me?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/MTgeophysics/mtpy/issues/139#issuecomment-805320856, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASUZUYC2BUUHT34OJNWAU7DTFELZTANCNFSM4ZIUW7MA .
OK it's not a problem with the edi files it's the script. If you run:
from mtpy.core import mt
edi_file = 'path/to/edifile'
mt_obj = mt.MT(edi_file) pt_obj = mt_obj.plot_mt_response()
It should work. I get a plot like this:
Dear Alison
I have tried running using your script. I am still facing the same problem.
Please find the following attached files for the script being used by me and the associated error :
Script_and_Error1: Scripts as suggested by you and the error associated Script_and_Error2: Scripts initially used by me and the error associated
Thanks and regards Roshan Kumar Singh DAAD Alumnus, 2018-19, (GFZ, Potsdam, Germany) Ph.D. Applied Geophysics Department of Applied Geophysics Indian Institute Of Technology (ISM) Dhanbad, 826004
On Wed, Mar 24, 2021 at 6:19 AM Alison Kirkby @.***> wrote:
OK it's not a problem with the edi files it's the script. If you run:
from mtpy.core import mt
edi_file = 'path/to/edifile'
mt_obj = mt.MT(edi_file) pt_obj = mt_obj.plot_mt_response(plot_yn='n') pt_obj.plot()
It should work. I get a plot like this: [image: image] https://user-images.githubusercontent.com/5335745/112237470-da46fb00-8c96-11eb-93a2-6d5022bbf9bc.png
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/MTgeophysics/mtpy/issues/139#issuecomment-805386582, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASUZUYBBPOP77NDCP6RC6B3TFEZKXANCNFSM4ZIUW7MA .
Dear Alison
I was wandering that the error may be due to any older version of MTpy being used by me.
Thanks and regards Roshan K Singh
On Wed, 24 Mar 2021, 06:59 Roshan manjit Singh, @.***> wrote:
Dear Alison
I have tried running using your script. I am still facing the same problem.
Please find the following attached files for the script being used by me and the associated error :
Script_and_Error1: Scripts as suggested by you and the error associated Script_and_Error2: Scripts initially used by me and the error associated
Thanks and regards Roshan Kumar Singh DAAD Alumnus, 2018-19, (GFZ, Potsdam, Germany) Ph.D. Applied Geophysics Department of Applied Geophysics Indian Institute Of Technology (ISM) Dhanbad, 826004
On Wed, Mar 24, 2021 at 6:19 AM Alison Kirkby @.***> wrote:
OK it's not a problem with the edi files it's the script. If you run:
from mtpy.core import mt
edi_file = 'path/to/edifile'
mt_obj = mt.MT(edi_file) pt_obj = mt_obj.plot_mt_response(plot_yn='n') pt_obj.plot()
It should work. I get a plot like this: [image: image] https://user-images.githubusercontent.com/5335745/112237470-da46fb00-8c96-11eb-93a2-6d5022bbf9bc.png
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/MTgeophysics/mtpy/issues/139#issuecomment-805386582, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASUZUYBBPOP77NDCP6RC6B3TFEZKXANCNFSM4ZIUW7MA .
quite possibly, it is definitely worth pulling the latest version, let me know how you go.
Dear Alison
I have downloaded the MTpy using the following link https://github.com/MTgeophysics/mtpy/wiki/MTPy-installation-guide-for-Windows-10-and-Ubuntu-18.04
If possible can you please provide me link to download the latest version or the version that you use.
Thanks and regards Roshan
On Thu, 25 Mar 2021, 07:38 Alison Kirkby, @.***> wrote:
quite possibly, it is definitely worth pulling the latest version, let me know how you go.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/MTgeophysics/mtpy/issues/139#issuecomment-806307190, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASUZUYFR6WKQ7TGAO3E335TTFKLKHANCNFSM4ZIUW7MA .
Following those instructions should get you the latest version. If you navigate to the path where mtpy is installed (e.g. /c/mtpywin/mtpy), make sure the develop branch is checked out, and run git pull, you should have the latest version. If you used pip install mtpy that version is out of date.
Dear Alison
I have followed your instructions . The MTpy version which I have been using is up to date
Roshan Kumar Singh
On Thu, Mar 25, 2021 at 8:31 AM Alison Kirkby @.***> wrote:
Following those instructions should get you the latest version. If you navigate to the path where mtpy is installed (e.g. /c/mtpywin/mtpy), make sure the develop branch is checked out, and run git pull, you should have the latest version. If you used pip install mtpy that version is out of date.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/MTgeophysics/mtpy/issues/139#issuecomment-806327611, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASUZUYBUC734WNW6WTAWOGDTFKRPXANCNFSM4ZIUW7MA .
Hmm It's really hard to debug as I can't reproduce the error, it works fine for me. How are you running the script (e.g. jupyter notebook, spyder, or commandline)? and what version of matplotlib are you using? I have matplotlib=3.2.1 (you can get a list of installed packages and versions by running pip freeze) and I am running it in spyder
Dear Alison
I am running on Jupiter Notebook. I have matplotlib=3.3.4.
Regards Roshan
On Fri, 26 Mar 2021, 02:41 Alison Kirkby, @.***> wrote:
Hmm It's really hard to debug as I can't reproduce the error, it works fine for me. How are you running the script (e.g. jupyter notebook, spyder, or commandline)? and what version of matplotlib are you using? I have matplotlib=3.2.1 (you can get a list of installed packages and versions by running pip freeze) and I am running it in spyder
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/MTgeophysics/mtpy/issues/139#issuecomment-807495037, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASUZUYHX3SWE3DEYQOITYBTTFORIHANCNFSM4ZIUW7MA .
I'm running out of suggestions I'm sorry, @zhang01GA do you have any ideas? The only other things I can suggest are:
Dear Alison
For the edi file without any empty entries I have been able to generate the phase tensor plots. It is only with the edi files having some empty entries i am facing difficulties.
Which python version you have? The python version that I am using is 3.7.1.
Best regards Roshan
On Fri, 26 Mar 2021, 09:07 Alison Kirkby, @.***> wrote:
I'm running out of suggestions I'm sorry, @zhang01GA https://github.com/zhang01GA do you have any ideas? The only other things I can suggest are:
- make sure you have the mtpy environment active in Anaconda
- if that doesn't help try running it as a script directly in a command prompt (ensuring the mtpy environment is active)
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/MTgeophysics/mtpy/issues/139#issuecomment-807912188, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASUZUYCEBQ27BEN7G5HMD73TFP6Q5ANCNFSM4ZIUW7MA .
@alkirkby @roshanmanjitsingh , we have a new developer @snazzybloke (Ante Bilic) who can start looking into this problem. I will provide assistance as required
Thank you Fei for having @snazzybloke https://github.com/snazzybloke (Ante Bilic) to look into the problem.
On Tue, 30 Mar 2021, 04:27 Fei Zhang, @.***> wrote:
@alkirkby https://github.com/alkirkby @roshanmanjitsingh https://github.com/roshanmanjitsingh , we have a new developer @snazzybloke https://github.com/snazzybloke (Ante Bilic) who can start looking into this problem. I will provide assistance as required
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/MTgeophysics/mtpy/issues/139#issuecomment-809777142, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASUZUYFCSXGFNBT3XRJ7I73TGEAVFANCNFSM4ZIUW7MA .
Hi @roshanmanjitsingh, I would need to know your whole environment to reproduce and investigate the issue. Would you be able share your package versions? (try perhaps pip freeze > requriements.txt)
Dear @snazzybloke https://github.com/snazzybloke
Please find the attached files.
On Tue, Mar 30, 2021 at 11:59 AM Ante Bilic @.***> wrote:
Hi @roshanmanjitsingh https://github.com/roshanmanjitsingh, I would need to know your whole environment to reproduce and investigate the issue. Would you be able share your package versions? (try perhaps pip freeze > requriements.txt)
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/MTgeophysics/mtpy/issues/139#issuecomment-809949606, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASUZUYAJAG2KNTIMJ27PNU3TGFVUJANCNFSM4ZIUW7MA .
alabaster==0.7.12 argon2-cffi @ file:///C:/ci/argon2-cffi_1613038019788/work astroid @ file:///C:/ci/astroid_1613500971479/work async-generator==1.10 attrs @ file:///tmp/build/80754af9/attrs_1604765588209/work Babel @ file:///tmp/build/80754af9/babel_1607110387436/work backcall @ file:///home/ktietz/src/ci/backcall_1611930011877/work bleach @ file:///tmp/build/80754af9/bleach_1612211392645/work brotlipy==0.7.0 certifi==2020.12.5 cffi @ file:///C:/ci/cffi_1613247308275/work cftime @ file:///C:/ci/cftime_1613248447654/work chardet @ file:///C:/ci/chardet_1607706910910/work click @ file:///home/linux1/recipes/ci/click_1610990599742/work click-plugins==1.1.1 cligj==0.7.1 cloudpickle @ file:///tmp/build/80754af9/cloudpickle_1598884132938/work colorama @ file:///tmp/build/80754af9/colorama_1607707115595/work cryptography @ file:///C:/ci/cryptography_1615532620702/work cycler==0.10.0 decorator @ file:///home/ktietz/src/ci/decorator_1611930055503/work defusedxml @ file:///home/ktietz/src/ci_mi/defusedxml_1612808095953/work docutils==0.16 entrypoints==0.3 Fiona==1.8.13.post1 future==0.18.2 GDAL==3.0.2 geopandas @ file:///tmp/build/80754af9/geopandas_1594937497867/work idna @ file:///home/linux1/recipes/ci/idna_1610986105248/work imagesize @ file:///home/ktietz/src/ci/imagesize_1611921604382/work importlib-metadata @ file:///tmp/build/80754af9/importlib-metadata_1602276842396/work ipykernel @ file:///C:/ci/ipykernel_1596208728219/work/dist/ipykernel-5.3.4-py3-none-any.whl ipython @ file:///C:/ci/ipython_1614616717881/work ipython-genutils @ file:///tmp/build/80754af9/ipython_genutils_1606773439826/work isort @ file:///tmp/build/80754af9/isort_1616355431277/work jedi==0.17.0 Jinja2 @ file:///tmp/build/80754af9/jinja2_1612213139570/work jsonschema @ file:///tmp/build/80754af9/jsonschema_1602607155483/work jupyter-client @ file:///tmp/build/80754af9/jupyter_client_1601311786391/work jupyter-core @ file:///C:/ci/jupyter_core_1612213516947/work jupyterlab-pygments @ file:///tmp/build/80754af9/jupyterlab_pygments_1601490720602/work keyring @ file:///C:/ci/keyring_1614630298708/work kiwisolver==1.3.1 lazy-object-proxy @ file:///C:/ci/lazy-object-proxy_1616529290879/work lxml==4.6.2 MarkupSafe @ file:///C:/ci/markupsafe_1594405949945/work matplotlib==3.3.4 mccabe==0.6.1 mistune @ file:///C:/ci/mistune_1594373272338/work mkl-fft==1.3.0 mkl-random==1.1.1 mkl-service==2.3.0 munch==2.5.0 nbclient @ file:///tmp/build/80754af9/nbclient_1614364831625/work nbconvert @ file:///C:/ci/nbconvert_1601914921407/work nbformat @ file:///tmp/build/80754af9/nbformat_1610738111109/work nest-asyncio @ file:///tmp/build/80754af9/nest-asyncio_1613680548246/work netCDF4==1.4.2 notebook @ file:///C:/ci/notebook_1611348264852/work numpy @ file:///C:/ci/numpy_and_numpy_base_1603468620949/work numpydoc @ file:///tmp/build/80754af9/numpydoc_1605117425582/work obspy==1.2.2 packaging @ file:///tmp/build/80754af9/packaging_1611952188834/work pandas @ file:///C:/ci/pandas_1614711338358/work pandocfilters @ file:///C:/ci/pandocfilters_1605102427207/work parso @ file:///tmp/build/80754af9/parso_1607623074025/work pickleshare @ file:///tmp/build/80754af9/pickleshare_1606932040724/work Pillow==8.1.1 prometheus-client @ file:///tmp/build/80754af9/prometheus_client_1606344362066/work prompt-toolkit @ file:///tmp/build/80754af9/prompt-toolkit_1602688806899/work psutil @ file:///C:/ci/psutil_1612298033174/work pycodestyle @ file:///tmp/build/80754af9/pycodestyle_1615748559966/work pycparser @ file:///tmp/build/80754af9/pycparser_1594388511720/work pyflakes @ file:///tmp/build/80754af9/pyflakes_1615746848500/work Pygments @ file:///tmp/build/80754af9/pygments_1613849567472/work pylint @ file:///C:/ci/pylint_1614971299523/work pyOpenSSL @ file:///tmp/build/80754af9/pyopenssl_1608057966937/work pyparsing @ file:///home/linux1/recipes/ci/pyparsing_1610983426697/work pyproj @ file:///C:/ci/pyproj_1614278152133/work pyrsistent @ file:///C:/ci/pyrsistent_1600123688363/work PySocks @ file:///C:/ci/pysocks_1594394709107/work python-dateutil @ file:///home/ktietz/src/ci/python-dateutil_1611928101742/work pytz @ file:///tmp/build/80754af9/pytz_1612215392582/work pywin32==227 pywin32-ctypes @ file:///C:/ci/pywin32-ctypes_1594392691209/work pywinpty==0.5.7 PyYAML==5.4.1 pyzmq==20.0.0 QtAwesome @ file:///tmp/build/80754af9/qtawesome_1615991616277/work qtconsole @ file:///tmp/build/80754af9/qtconsole_1612458529756/work QtPy==1.9.0 requests @ file:///tmp/build/80754af9/requests_1608241421344/work rope @ file:///tmp/build/80754af9/rope_1602264064449/work Rtree==0.9.4 scipy==1.6.1 Send2Trash @ file:///tmp/build/80754af9/send2trash_1607525499227/work Shapely==1.7.1 six @ file:///C:/ci/six_1605205426665/work snowballstemmer @ file:///tmp/build/80754af9/snowballstemmer_1611258885636/work Sphinx @ file:///tmp/build/80754af9/sphinx_1616268783226/work sphinxcontrib-applehelp @ file:///home/ktietz/src/ci/sphinxcontrib-applehelp_1611920841464/work sphinxcontrib-devhelp @ file:///home/ktietz/src/ci/sphinxcontrib-devhelp_1611920923094/work sphinxcontrib-htmlhelp @ file:///home/ktietz/src/ci/sphinxcontrib-htmlhelp_1611920974801/work sphinxcontrib-jsmath @ file:///home/ktietz/src/ci/sphinxcontrib-jsmath_1611920942228/work sphinxcontrib-qthelp @ file:///home/ktietz/src/ci/sphinxcontrib-qthelp_1611921055322/work sphinxcontrib-serializinghtml @ file:///home/ktietz/src/ci/sphinxcontrib-serializinghtml_1611920755253/work spyder==3.3.6 spyder-kernels==0.5.2 SQLAlchemy==1.3.23 terminado==0.9.2 testpath @ file:///home/ktietz/src/ci/testpath_1611930608132/work toml @ file:///tmp/build/80754af9/toml_1616166611790/work tornado @ file:///C:/ci/tornado_1606935947090/work traitlets @ file:///home/ktietz/src/ci/traitlets_1611929699868/work typed-ast @ file:///C:/ci/typed-ast_1610484654578/work urllib3 @ file:///tmp/build/80754af9/urllib3_1615837158687/work wcwidth @ file:///tmp/build/80754af9/wcwidth_1593447189090/work webencodings==0.5.1 win-inet-pton @ file:///C:/ci/win_inet_pton_1605306165655/work wincertstore==0.2 wrapt==1.12.1 zipp @ file:///tmp/build/80754af9/zipp_1604001098328/work
alabaster=0.7.12=py37_0 argon2-cffi=20.1.0=py37h2bbff1b_1 astroid=2.5=py37haa95532_1 async_generator=1.10=py37h28b3542_0 attrs=20.3.0=pyhd3eb1b0_0 babel=2.9.0=pyhd3eb1b0_0 backcall=0.2.0=pyhd3eb1b0_0 blas=1.0=mkl bleach=3.3.0=pyhd3eb1b0_0 brotlipy=0.7.0=py37h2bbff1b_1003 bzip2=1.0.8=he774522_0 ca-certificates=2021.1.19=haa95532_1 certifi=2020.12.5=py37haa95532_0 cffi=1.14.5=py37hcd4344a_0 cfitsio=3.470=he774522_6 cftime=1.4.1=py37h080aedc_0 chardet=4.0.0=py37haa95532_1003 click=7.1.2=pyhd3eb1b0_0 click-plugins=1.1.1=py_0 cligj=0.7.1=py37haa95532_0 cloudpickle=1.6.0=py_0 colorama=0.4.4=pyhd3eb1b0_0 cryptography=3.4.6=py37h71e12ea_0 curl=7.67.0=h2a8f88b_0 cycler=0.10.0=pypi_0 decorator=4.4.2=pyhd3eb1b0_0 defusedxml=0.6.0=pyhd3eb1b0_0 docutils=0.16=py37_1 entrypoints=0.3=py37_0 expat=2.2.10=h33f27b4_2 fiona=1.8.13.post1=py37hd760492_0 freexl=1.0.6=h2bbff1b_0 future=0.18.2=pypi_0 gdal=3.0.2=py37hdf43c64_0 geopandas=0.8.1=py_0 geos=3.8.0=h33f27b4_0 geotiff=1.5.1=h5770a2b_1 hdf4=4.2.13=h712560f_2 hdf5=1.10.4=h7ebc959_0 icc_rt=2019.0.0=h0cc432a_1 icu=58.2=ha925a31_3 idna=2.10=pyhd3eb1b0_0 imagesize=1.2.0=pyhd3eb1b0_0 importlib-metadata=2.0.0=py_1 importlib_metadata=2.0.0=1 intel-openmp=2020.2=254 ipykernel=5.3.4=py37h5ca1d4c_0 ipython=7.21.0=py37hd4e2768_0 ipython_genutils=0.2.0=pyhd3eb1b0_1 isort=5.8.0=pyhd3eb1b0_0 jedi=0.17.0=py37_0 jinja2=2.11.3=pyhd3eb1b0_0 jpeg=9b=hb83a4c4_2 jsonschema=3.2.0=py_2 jupyter_client=6.1.7=py_0 jupyter_core=4.7.1=py37haa95532_0 jupyterlab_pygments=0.1.2=py_0 kealib=1.4.7=h07cbb95_6 keyring=22.3.0=py37haa95532_0 kiwisolver=1.3.1=pypi_0 krb5=1.16.4=hc04afaa_0 lazy-object-proxy=1.6.0=py37h2bbff1b_0 libboost=1.67.0=hd9e427e_4 libcurl=7.67.0=h2a8f88b_0 libgdal=3.0.2=h1155b67_0 libiconv=1.15=h1df5818_7 libkml=1.3.0=he5f2a48_4 libnetcdf=4.6.1=h411e497_2 libpng=1.6.37=h2a8f88b_0 libpq=11.2=h3235a2c_0 libsodium=1.0.18=h62dcd97_0 libspatialindex=1.9.3=h33f27b4_0 libspatialite=4.3.0a=h7ffb84d_0 libssh2=1.9.0=h7a1dbc1_1 libtiff=4.1.0=h56a325e_0 libxml2=2.9.10=hb89e7f3_3 lxml=4.6.2=pypi_0 lz4-c=1.8.1.2=h2fa13f4_0 m2w64-expat=2.1.1=2 m2w64-gcc-libgfortran=5.3.0=6 m2w64-gcc-libs=5.3.0=7 m2w64-gcc-libs-core=5.3.0=7 m2w64-gettext=0.19.7=2 m2w64-gmp=6.1.0=2 m2w64-libiconv=1.14=6 m2w64-libwinpthread-git=5.0.0.4634.697f757=2 m2w64-xz=5.2.2=2 markupsafe=1.1.1=py37hfa6e2cd_1 matplotlib=3.3.4=pypi_0 mccabe=0.6.1=py37_1 mistune=0.8.4=py37hfa6e2cd_1001 mkl=2020.2=256 mkl-service=2.3.0=py37h196d8e1_0 mkl_fft=1.3.0=py37h46781fe_0 mkl_random=1.1.1=py37h47e9c7a_0 msys2-conda-epoch=20160418=1 munch=2.5.0=py_0 nbclient=0.5.3=pyhd3eb1b0_0 nbconvert=6.0.7=py37_0 nbformat=5.1.2=pyhd3eb1b0_1 nest-asyncio=1.5.1=pyhd3eb1b0_0 netcdf4=1.4.2=py37h812ae01_0 notebook=6.2.0=py37haa95532_0 numpy=1.19.2=py37hadc3359_0 numpy-base=1.19.2=py37ha3acd2a_0 numpydoc=1.1.0=pyhd3eb1b0_1 obspy=1.2.2=pypi_0 openjpeg=2.3.0=h5ec785f_1 openssl=1.1.1k=h2bbff1b_0 packaging=20.9=pyhd3eb1b0_0 pandas=1.2.3=py37hf11a4ad_0 pandoc=2.11=h9490d1a_0 pandocfilters=1.4.3=py37haa95532_1 parso=0.8.1=pyhd3eb1b0_0 pcre=8.44=ha925a31_0 pickleshare=0.7.5=pyhd3eb1b0_1003 pillow=8.1.1=pypi_0 pip=21.0.1=py37haa95532_0 postgresql=11.2=h3235a2c_0 proj=6.2.1=h9f7ef89_0 prometheus_client=0.9.0=pyhd3eb1b0_0 prompt-toolkit=3.0.8=py_0 psutil=5.8.0=py37h2bbff1b_1 pycodestyle=2.7.0=pyhd3eb1b0_0 pycparser=2.20=py_2 pyflakes=2.3.0=pyhd3eb1b0_0 pygments=2.8.0=pyhd3eb1b0_0 pylint=2.7.2=py37haa95532_1 pyopenssl=20.0.1=pyhd3eb1b0_1 pyparsing=2.4.7=pyhd3eb1b0_0 pyproj=2.6.1.post1=py37h593ac45_1 pyqt=5.9.2=py37h6538335_2 pyrsistent=0.17.3=py37he774522_0 pysocks=1.7.1=py37_1 python=3.7.10=h6244533_0 python-dateutil=2.8.1=pyhd3eb1b0_0 pytz=2021.1=pyhd3eb1b0_0 pywin32=227=py37he774522_1 pywin32-ctypes=0.2.0=py37_1001 pywinpty=0.5.7=py37_0 pyyaml=5.4.1=py37h2bbff1b_1 pyzmq=20.0.0=py37hd77b12b_1 qt=5.9.7=vc14h73c81de_0 qtawesome=1.0.2=pyhd3eb1b0_0 qtconsole=5.0.2=pyhd3eb1b0_0 qtpy=1.9.0=py_0 requests=2.25.1=pyhd3eb1b0_0 rope=0.18.0=py_0 rtree=0.9.4=py37h21ff451_1 scipy=1.6.1=pypi_0 send2trash=1.5.0=pyhd3eb1b0_1 setuptools=52.0.0=py37haa95532_0 shapely=1.7.1=py37h210f175_0 sip=4.19.8=py37h6538335_0 six=1.15.0=py37haa95532_0 snowballstemmer=2.1.0=pyhd3eb1b0_0 sphinx=3.5.3=pyhd3eb1b0_0 sphinxcontrib-applehelp=1.0.2=pyhd3eb1b0_0 sphinxcontrib-devhelp=1.0.2=pyhd3eb1b0_0 sphinxcontrib-htmlhelp=1.0.3=pyhd3eb1b0_0 sphinxcontrib-jsmath=1.0.1=pyhd3eb1b0_0 sphinxcontrib-qthelp=1.0.3=pyhd3eb1b0_0 sphinxcontrib-serializinghtml=1.1.4=pyhd3eb1b0_0 spyder=3.3.6=py37_0 spyder-kernels=0.5.2=py37_0 sqlalchemy=1.3.23=pypi_0 sqlite=3.33.0=h2a8f88b_0 tbb=2018.0.5=he980bc4_0 terminado=0.9.2=py37haa95532_0 testpath=0.4.4=pyhd3eb1b0_0 tiledb=1.6.3=h7b000aa_0 tk=8.6.10=he774522_0 toml=0.10.2=pyhd3eb1b0_0 tornado=6.1=py37h2bbff1b_0 traitlets=5.0.5=pyhd3eb1b0_0 typed-ast=1.4.2=py37h2bbff1b_1 urllib3=1.26.3=pypi_0 vc=14.2=h21ff451_1 vs2015_runtime=14.27.29016=h5e58377_2 wcwidth=0.2.5=py_0 webencodings=0.5.1=py37_1 wheel=0.36.2=pyhd3eb1b0_0 win_inet_pton=1.1.0=py37haa95532_0 wincertstore=0.2=py37_0 winpty=0.4.3=4 wrapt=1.12.1=py37he774522_1 xerces-c=3.2.3=ha925a31_0 xz=5.2.5=h62dcd97_0 yaml=0.2.5=he774522_0 zeromq=4.3.3=ha925a31_3 zipp=3.4.0=pyhd3eb1b0_0 zlib=1.2.11=h62dcd97_4 zstd=1.3.7=h508b16e_0
Hi @roshanmanjitsingh,
I've run into the same errors as you by running Alison's script shown above. The issue was matplotlib. My version was 3.4.1 and after replacing it with 3.2.1: pip install matplotlib==3.2.1 the script reproduces Alison's plots without a hiccup.
So, as a quick fix I suggest that you set up the virtual environment for mtpy to use the 3.2.1 matplotlib ver. Clearly, a better solution is needed that does not crash with newer versions.
Ante
@roshanmanjitsingh, further to my comment above, even with the newer matplotlib version you should still be able to produce the plots simply by running your script from the command line, e.g.: _> python scriptname.py
The error I see is between IPython and new matplotlib, which makes it impossible for either spyder or jupyter to render the plot object (since they both rely on IPython directly and/or via ipykernel).
Dear @snazzybloke https://github.com/snazzybloke Thanks for giving time to my problem. I will try to follow your recommendation and then get back to you
On Sun, Apr 4, 2021 at 2:32 PM Ante Bilic @.***> wrote:
@roshanmanjitsingh https://github.com/roshanmanjitsingh, further to my comment above, even with the newer matplotlib version you should still be able to produce the plots simply by running your script from the command line, e.g.: > python script_name.py
The error I see is between IPython and new matplotlib, which makes it impossible for either spyder or jupyter to render the plot object (since they both rely on IPython directly and/or via ipykernel).
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/MTgeophysics/mtpy/issues/139#issuecomment-812999269, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASUZUYEE7ET4AWYSQPNSVFDTHATJTANCNFSM4ZIUW7MA .
Dear @snazzybloke https://github.com/snazzybloke I tried running the script using your recommendation and it executed successfully. Thank you very much. Thanks to all.
Roshan Kumar Singh
On Mon, Apr 5, 2021 at 1:29 AM Roshan manjit Singh < @.***> wrote:
Dear @snazzybloke https://github.com/snazzybloke Thanks for giving time to my problem. I will try to follow your recommendation and then get back to you
On Sun, Apr 4, 2021 at 2:32 PM Ante Bilic @.***> wrote:
@roshanmanjitsingh https://github.com/roshanmanjitsingh, further to my comment above, even with the newer matplotlib version you should still be able to produce the plots simply by running your script from the command line, e.g.: > python script_name.py
The error I see is between IPython and new matplotlib, which makes it impossible for either spyder or jupyter to render the plot object (since they both rely on IPython directly and/or via ipykernel).
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/MTgeophysics/mtpy/issues/139#issuecomment-812999269, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASUZUYEE7ET4AWYSQPNSVFDTHATJTANCNFSM4ZIUW7MA .
I have an MT data file where the entries are in column format. I have converted it into EDI format. For some frequencies, I do have only the tipper data and not the impedance data and vice versa. In the EDI file, I am adding "0.000000E+0" for the component whose value is missing. For example, corresponding to the frequency "2.441406E-05" I don't have the Z information so in the EDI file, I am adding "0.000000E+0" for all the Z components whereas for tipper I am giving the measured value.
In such cases, I am unable to generate the phase tensor plots for the respective sites.