GeoRulesLobePy
Deep-water lobe simulator using rule-based models, Markov chains, and geological knowledge.
Install / Use
/learn @chaconnb/GeoRulesLobePyREADME
GeorulesLobePy
To run the main code run:
- Start by following the steps of the
Developer Quick Start SectionNote: If you've already installed the package in editable mode, you can skip that step. - Run the main notebook:
notebooks/main_notebook.ipynb
or run the main script:
main.py
Developer Quick Start
GeorulesLobePy uses Conda to manage the Python environment. External libraries are installed using PIP. Please refer to the Conda documentation.
Python Environment
To set up the environment from scratch, perform the following commands in the project root.
- Create a new conda environment
- Active the environment
- Install the package in editable mode.
# run these commands in the project root
conda create -n georuleslobepy python=3.11 # Step 1: create new georuleslobepy env
conda activate georuleslobepy # Step 2: activate georuleslobepy env
pip install -e . # Step 4: install local project code with PIP
This will:
- Install the
georuleslobepypackage in editable mode, allowing you to modify the code without reinstallation - Install all necessary dependencies (including support for Jupyter notebooks and interactive PyVista plotting)
WARNING: If the dependencies listed in pyproject.toml change (e.g., new packages are added or versions updated), it is recommended to rebuild the environment from scratch to ensure consistency.
To delete the existing georuleslobepy environment run:
conda remove --name georuleslobepy --all # remove georuleslobepy env
Acknowledgments
Special thanks to Dr. Daniel Willhelm for help with cleaning some functions of the code.
