Getting Started
Note
This documentation is a work in progress. If you have any suggestions or find any issues, please feel free to contribute !
Overview
pyrootmemo is a Python package designed to unify and homogenise the models implemented to estimate the contribution of root systems to the strength of soil. It provides a consistent interface to various models, allowing users to easily switch between them and compare their results. pyrootmemo relies on object-oriented programming principles, making it easy to extend and modify.
Installation
We strongly recommend to work in a virtual environment, and we suggest to use a Conda environment to manage dependencies and avoid conflicts with other Python packages. Follow the instructions below to install pyrootmemo in a Conda environment. You can follow the steps below to create a new Conda environment and install pyrootmemo:
If you have not already installed, download your preferred installation of Conda. You can try Miniforge, which is a minimal installer for Conda that includes only the packages necessary to get started with Conda and the conda-forge channel.
Create a virtual environment with Python
conda create -n rrmm python
Once the installation is complete, activate the environment
conda activate rrmm
Alternative 1
To install pyrootmemo, you can use pip:
pip install pyrootmemo
Alternative 2
To install pyrootmemo from the source code, you can clone the repository and install it:
git clone git@github.com:rootmemo/pyrootmemo.git
Navigate to the cloned repository and install pyrootmemo using the following command:
cd pyrootmemo
poetry install
Usage
Check out Jupyter Notebooks in tests/*.ipynb for a comprehensive tutorials on how to use pyrootmemo!