GXPGEXP class

class GXPGEXP(handle=0)

GXPGEXP class.

The GXPGEXP class is similar to the GXEXP class, but is used to apply math expressions to pagers (GXPG objects).

It works only on PGs of the same dimensions.

add_pager(pg, var)

This method adds an pager to the GXPGEXP object with a variable name.

Parameters:
  • pg (GXPG) – Pager to add
  • var (str) – Variable name

New in version 7.1.

License: Geosoft End-User License

classmethod create()

This method creates an GXPGEXP object.

Returns:GXPGEXP Object
Return type:GXPGEXP

New in version 7.1.

License: Geosoft End-User License

do_formula(formula, max_len)

This method runs a formula on the pagers.

Parameters:
  • formula (str) – Formula
  • max_len (int) – Max. Buff size

New in version 7.1.

License: Geosoft End-User License

is_null()

Check if this is a null (undefined) instance

Returns:True if this is a null (undefined) instance, False otherwise.
Return type:bool
classmethod null()

A null (undefined) instance of GXPGEXP

Returns:A null GXPGEXP
Return type:GXPGEXP