GXPGEXP class

class GXPGEXP(handle=0)[source]

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.

__init__(handle=0)[source]

Initialize self. See help(type(self)) for accurate signature.

add_pager(pg, var)[source]

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()[source]

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, unused)[source]

This method runs a formula on the pagers.

Parameters
  • formula (str) – Formula

  • unused (int) – Legacy parameter, no longer used.

New in version 7.1.

License: Geosoft End-User License

is_null()[source]

Check if this is a null (undefined) instance

Returns

True if this is a null (undefined) instance, False otherwise.

Return type

bool

classmethod null()[source]

A null (undefined) instance of GXPGEXP

Returns

A null GXPGEXP

Return type

GXPGEXP