MTgeophysics / mtpy

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

An error that come from the function of plot_mt_response.py #165

Closed chenhaomagnetic closed 2 years ago

chenhaomagnetic commented 2 years ago

there is an error that come from the function of plot_mt_response.py, I try to run the code as follows:

from mtpy.core.mt import MT from mtpy.imaging.plot_mt_response import PlotMTResponse edifile = r"E:\script\python\MTpy\data\AMT\15125A.edi" mt_obj = MT(edifile) rp1 = PlotMTResponse(mt_obj.Z, plot_num=2) rp1 = PlotMTResponse(mt_obj.Z, t_object=mt_obj.Tipper, plot_tipper='yr')

The error comes out as follows:

TypeError: init() got an unexpected keyword argument 'nonposy'

The version of mtpy-1.1.5 is installed. I also found several examples of using this function in the tutorial. I hope someone can maintenance it.

DavidMvD commented 2 years ago

Hello!

I have the same problem. Do you know if anyone has been able to resolve this issue? =/

chenhaomagnetic commented 2 years ago

Dear DavidMvD, I tried running the code on the Linux system, and there is no problem with it.

DavidMvD @.***> 于2022年1月17日周一 05:00写道:

Hello!

I have the same problem. Do you know if anyone has been able to resolve this issue? =/

— Reply to this email directly, view it on GitHub https://github.com/MTgeophysics/mtpy/issues/165#issuecomment-1013941999, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKBDQRQ2BG2R4OCSMG5OFL3UWMPWZANCNFSM5LNWQPYA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you modified the open/close state.Message ID: @.***>

-- Best regard Hao Chen

========================== Exploration Geophysics Lab., Dept. Earth Resources Engineering, Kyushu University