pygmi.em.tdem#

Time Domain EM, based on the SimPEG library.

Classes#

MyMplCanvas2

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.MyMplCanvas2(parent=None)#

Bases: matplotlib.backends.backend_qtagg.FigureCanvasQTAgg

Matplotlib canvas widget for the actual plot.

Parameters:

parent (parent, optional) – Reference to the parent routine. The default is None.

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

Update the plot from data.

Parameters:
  • sigma (numpy array) – Conductivity values.

  • z (numpy array) – Depth values.

  • times_off (numpy array) – Time.

  • zobs (numpy array) – Observed dBz/dt.

  • zpred (numpy array) – Predicted dBz/dt.

Return type:

None.

disp_wave(times, wave, title)#

Display waveform.

Parameters:
  • times (numpy array) – Times.

  • wave (numpy array) – Waveform amplitude.

  • title (str) – Title.

Return type:

None.

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

Bases: pygmi.misc.BasicModule

TDEM 1D inversion GUI.

Parameters:

parent (parent, optional) – Reference to the parent routine. The default is None.

apply()#

Invert the data.

Return type:

None.

change_source()#

Change Source.

Return type:

None.

disp_wave()#

Display the waveform.

Return type:

None.

update_wave()#

Update the waveform.

Returns:

wform – Waveform.

Return type:

tdem waveform.

get_wfile(filename='')#

Get the window time filename.

Parameters:

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

Return type:

None.

change_line()#

Combo to change line.

Return type:

None.

settings(nodialog=False)#

Entry point into item.

Parameters:

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

Returns:

True if successful, False otherwise.

Return type:

bool

saveproj()#

Save project data from class.

Return type:

None.

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

Check if something is a number or matches alttext.

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

  • alttext (str, optional) – 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