pygmi.em.tdem#

Time Domain EM inversion, based on the SimPEG library.

Classes#

MyMplCanvas

Matplotlib canvas widget for the actual plot.

TDEM1D

TDEM 1D inversion GUI.

Functions#

tonumber(test[, alttext])

Check if something is a number or matches alttext.

Module Contents#

class pygmi.em.tdem.MyMplCanvas#

Bases: matplotlib.backends.backend_qtagg.FigureCanvasQTAgg

Matplotlib canvas widget for the actual plot.

update_line(sigma, z, times_off, zobs, zpred)#

Update the plot from data.

Parameters:
  • sigma (numpy.typing.NDArray) – Conductivity values.

  • z (numpy.typing.NDArray) – Depth values.

  • times_off (numpy.typing.NDArray) – Time.

  • zobs (numpy.typing.NDArray) – Observed dBz/dt.

  • zpred (numpy.typing.NDArray) – Predicted dBz/dt.

disp_wave(times, wave, title)#

Display waveform.

Parameters:
  • times (numpy.typing.NDArray) – Times.

  • wave (numpy.typing.NDArray) – Waveform amplitude.

  • title (str) – Title.

class pygmi.em.tdem.TDEM1D(parent=None)#

Bases: pygmi.misc.BasicModule

TDEM 1D inversion GUI.

Parameters:

parent – Reference to the parent routine. The default is None.

apply()#

Invert the data.

change_source()#

Change Source.

disp_wave()#

Display the waveform.

update_wave()#

Update the waveform.

Returns:

TDEM Waveform.

Return type:

object

get_wfile(filename='')#

Get the window time filename.

Parameters:

filename (str) – filename (txt). The default is ‘’.

change_line()#

Combo to change line.

settings(nodialog=False)#

Entry point into item.

Parameters:

nodialog (bool) – Run settings without a dialog. The default is False.

Returns:

True if successful, False otherwise.

Return type:

bool

saveproj()#

Save project data from class.

pygmi.em.tdem.tonumber(test, alttext=None)#

Check if something is a number or matches alttext.

Parameters:
  • test (str) – Text to test.

  • alttext (str | None) – Alternate text to test. The default is None.

Returns:

Returns a lower case version of alttext, or a number.

Return type:

str or int or float