MTgeophysics / mtpy

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

plotting phase tensor residuals #178

Open fsevim opened 1 year ago

fsevim commented 1 year ago

Dear all;

I get an error like below when i try to plot phase tensor residuals both as pseudo section and map.

TypeError: _read_ellipse_dict() missing 1 required positional argument: 'ellipse_dict' I posted my script below.

import mtpy.imaging.mtplot as mtplot import os edipath1 = r"/home/user/mtpy/data/edifiles1" edilist1 = [os.path.join(edipath1,edi) for edi in os.listdir(edipath1) if edi.find('.edi')>0] edipath2 = r"/home/user/mtpy/data/edifiles2" edilist2 = [os.path.join(edipath2,edi) for edi in os.listdir(edipath2) if edi.find('.edi')>0] ptmap = mtplot.plot_residual_pt_maps(edilist1, edilist2,ellipse_dict={'size':1, 'cmap': 'mt_yl2rd', 'colorby': 'geometric_mean','range':(0,5)})