Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
Python in this document
Python Tutorial | Python Tutorial for Geosoft GX Developer |
---|---|
Extending Oasis montaj with Python | Python Extensions |
Stand-alone Python |
Each release of GX Developer since 8.4 has included and advanced support for Python as noted here:
9.3.1: Suport for Voxels and Surfaces, plus extension of the Geometry base class.
Jupyter notebook example:
A Python Tutorial is now available: Python Tutorial for Geosoft GX Developer.
Jupyter notebook examples: https://github.com/GeosoftInc/gxpy/tree/9.3/examples/jupyter_notebooks/Tutorials
See the Module History for new api features.
This is a significant advance of the geosoft.gxpy set of modules, which includes expansion of existing modules and support for 2D and 3D graphics capabilities. Following are new modules:
geosoft.gxpy.agg | image aggregates |
---|---|
geosoft.gxpy.coordinate_system | geospatial coordinate system support |
geosoft.gxpy.dataframe | tables, Pandas dataframe compatible |
geosoft.gxpy.geometry | geospatial geometries |
geosoft.gxpy.group | group drawing for 2D and 3D views |
geosoft.gxpy.map | Geosoft maps, which are containers for 2D and 3D views |
geosoft.gxpy.project | Geosoft project support |
geosoft.gxpy.view | 2D and 3D views |
geosoft.gxpy.viewer | document viewers for all supported Geosoft document types. |
Info |
---|
The multi-language GX API, on which both the Python geosoft.gxpy modules, and the geosoft.gxapi modules depend, remains consistent across versions, and Python scripts that depend on only the geosoft.gxapi module are version independent. This is not the case for scripts that depend on the geosoft.gxpy modules, which have been significantly advanced and updated to conform to current Python development best practice. We recommend that Python scripts that depend on geosoft.gxpy version 9.1 be updated to support geosoft.gxpy version 9.2. Going forward we expect to have better backward compatibility across versions, though we are not currently in a position to assure backward compatibility for the geosoft.gxpy modules. We can assure backward compatibility for the geosoft.gxapi modules. |
- The Geosoft package is available on PyPI and supports pip install:
Code Block |
---|
pip install geosoft==9.2 |
- Python source modules are available for reference on github: https://github.com/GeosoftInc/gxpy
- Refactored documentation with improved Python reference. (see GX Developer 9.1)
- Added support for 64-bit Python 3.4, 3.5 and later versions.
- Dropped support for 32-bit Python.
- The Python API now has two parts
- geosoft.gxapi, which is the standard complete GX API
https://geosoftinc.github.io/gxpy/9.1/python/geosoft.gxapi.html - geosoft.gxpy, which includes a set of simplified "pythonic" modules.
https://geosoftinc.github.io/gxpy/9.1/python/geosoft.gxpy.html
- geosoft.gxapi, which is the standard complete GX API
- The Geosoft package is available on PyPI and supports pip install:
Code Block |
---|
pip install geosoft==9.1 |
- Python source modules are also available on github: https://github.com/GeosoftInc/gxpy
BETA release of library and dll files to support external programs that needed to be rebuilt as 64-bit dlls in order to run from Oasis montaj 9.0. This release did not include an update of the Python interfaces, though external programs that worked for GX Developer 8.5 continued to work.
Bug fixes and new API functions. Continued support for 32-bit and 64-bit Python 3.4
GX API support for external Python 3.4 programs, both 32-bit and 64-bit. 64-bit programs were supported via a 64 to 32-bit interface (dbus).
Release History
Include Page | ||||
---|---|---|---|---|
|