pygmi.pfmod.misc#
These are miscellaneous functions for the program.
Classes#
Wrapper for a progress bar. It consists of two progress bars. |
|
Perform Merge of two models. |
Functions#
|
Update the lithology list widget. |
|
Routine used to merge two grids. |
Module Contents#
- pygmi.pfmod.misc.update_lith_lw(lmod, lwidget)#
Update the lithology list widget.
- Parameters:
lmod (LithModel) – 3D model.
lwidget (QListWidget) – List widget.
- Return type:
None.
- class pygmi.pfmod.misc.ProgressBar(pbar, pbarmain)#
Wrapper for a progress bar. It consists of two progress bars.
- Parameters:
par (pygmi.misc.ProgressBar) – Progress bar.
pbarmain (pygmi.misc.ProgressBar) – Main progress bar.
- incr()#
Increase value by one.
- Return type:
None.
- iter(iterable)#
Iterate routine.
- Parameters:
iterable (iterable) – Iterable.
- Yields:
obj (object) – Object in iterable.
- incrmain(i=1)#
Increase value by i.
- Parameters:
i (int, optional) – Iteration step. The default is 1.
- Return type:
None.
- maxall()#
Set all progress bars to maximum value.
- Return type:
None.
- resetall(maximum=1, mmax=1)#
Set min and max and resets all bars to 0.
- Parameters:
maximum (int, optional) – Maximum value. The default is 1.
mmax (int, optional) – Maximum value. The default is 1.
- Return type:
None.
- resetsub(maximum=1)#
Set min and max and resets sub bar to 0.
- Parameters:
maximum (int, optional) – Maximum value. The default is 1.
- Return type:
None.
- busysub()#
Busy.
- Return type:
None.
- class pygmi.pfmod.misc.MergeMod3D(parent=None)#
Bases:
pygmi.misc.BasicModule
Perform Merge of two models.
- Parameters:
parent (parent, optional) – Reference to the parent routine. The default is None.
- setupui()#
Set up UI.
- 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.
- acceptall()#
Accept option.
Updates self.outdata, which is used as input to other modules.
- Returns:
True if successful, False otherwise
- Return type:
bool
- pygmi.pfmod.misc.gmerge(master, slave, xrange=None, yrange=None)#
Routine used to merge two grids.
- Parameters:
master (pygmi.raster.datatypes.Data) – PyGMI raster dataset.
slave (pygmi.raster.datatypes.Data) – PyGMI raster dataset.
xrange (list, optional) – List containing range of minimum and maximum X. The default is None.
yrange (list, optional) – List containing range of minimum and maximum Y. The default is None.
- Returns:
PyGMI raster dataset.
- Return type: