pygmi.pfmod.show_table#
Routine which displays a table graphically with various statistics.
Classes#
Show a summary of basic stats. |
Functions#
|
Calculate statistics. |
|
Save tabular data. |
Module Contents#
- class pygmi.pfmod.show_table.BasicStats3D(parent=None)#
Bases:
pygmi.misc.ContextModuleShow a summary of basic stats.
- Parameters:
parent – Reference to the parent routine. The default is None.
- setupui()#
Set up UI.
- run()#
Entry point into the routine, used to run context menu item.
- save()#
Save Table.
- Returns:
True if successful, False otherwise.
- Return type:
bool
- pygmi.pfmod.show_table.basicstats3d_calc(lmod)#
Calculate statistics.
- Parameters:
lmod (pygmi.pfmod.datatypes.LithModel) – PyGMI lithology model.
- Returns:
bands (
list) – Band list, currently only ‘Data Column’cols (
list) – Columns for the tabledattmp (
list) – List of arrays containing statistics.
- Return type:
tuple[list[str], list[str], list[numpy.typing.NDArray]]
- pygmi.pfmod.show_table.savetable(ofile, bands, cols, data)#
Save tabular data.
- Parameters:
ofile (str) – Output file name.
bands (list) – List of bands.
cols (list) – List of column headings.
data (list) – List of arrays containing statistics.
- Return type:
None.