OpenGeode Geosciences
raw JSON → 9.5.13 verified Mon Apr 27 auth: no python
OpenGeode module for geosciences, providing geology-oriented data structures and tools (e.g., horizons, faults, stratigraphy) on top of the OpenGeode core. Current version: 9.5.13. Release cadence: follows OpenGeode core releases (monthly).
pip install opengeode-geosciences Common errors
error ModuleNotFoundError: No module named 'opengeode_geosciences' ↓
cause Package not installed or incorrect import name (e.g., used opengeode.geosciences).
fix
Install with: pip install opengeode-geosciences and import as 'import opengeode_geosciences'.
error ImportError: cannot import name 'GeologicalModel' from 'opengeode_geosciences' ↓
cause GeologicalModel was renamed to Model in version 9.5.0.
fix
Use 'from opengeode_geosciences import Model' instead.
Warnings
breaking The module structure changed from opengeode.geosciences (pre-9.0) to opengeode_geosciences (9.0+). Old import patterns will fail. ↓
fix Use 'import opengeode_geosciences' instead of 'import opengeode.geosciences'.
deprecated The 'GeologicalModel' class (singular) is deprecated; use 'Model' (plural) instead. ↓
fix Replace 'GeologicalModel' with 'Model'.
gotcha This package requires opengeode-core. Install both: pip install opengeode-core opengeode-geosciences. If only opengeode-geosciences is installed, import will fail with ModuleNotFoundError for opengeode_core. ↓
fix Install the core package as well: pip install opengeode-core.
Imports
- OpenGeodeGeosciences wrong
import opengeode.geosciencescorrectimport opengeode_geosciences
Quickstart
import opengeode_geosciences
from opengeode_geosciences import Model, StratigraphicUnit, Horizon, Fault
# Create a simple geological model
model = Model()
unit = StratigraphicUnit(model, 'Basement', 2.5e9, 5.4e8)
print(f'Created unit: {unit.name()}, age: {unit.age_range()}')