mtpy-v2 icon indicating copy to clipboard operation
mtpy-v2 copied to clipboard

EDI files with only tippers are present do not plot

Open kkappler opened this issue 1 year ago • 0 comments

Expected Behavior

If an edi file does not have impedance, but only tipper, for a station that does not have electric dipoles, the plotter functions crash.

Current Behavior

from mtpy import MT, MTData
md = MTData()
md.add_station(list_of_paths_to_edi_files, survey="survey_name")
p = md.plot_mt_response("survey_name.001")
p = md.plot_phase_tensor_map()

image

image

Bascially, it looks like impedance values are being looked for but not found.

Maybe instead of letting Z be None it could be an empty iterable?

kkappler avatar May 31 '24 23:05 kkappler