Development Setup
Developers and contributors can set up a local development environment to work on the SedTRAILS codebase. Follow the steps below to get started.
Make sure Python (3.13 or newer) and a code editor (e.g., Visual Studio Code) is installed.
Fork the SedTRAILS repository on GitHub to your own account. If it is your first time using contritubing to SedTRAILS, please read the contributing guidelines.
Clone the SedTRAILS repository from github in your desired directory:
git clone git@github.com:<your-user-name>/sedtrails.git
Change the directory:
cd sedtrails
Change to the development branch:
git swiltch dev
Create and activate a virtual environment to manage dependencies using the tool of your choice. For example, using
venvorconda.
# If using venv
python -m venv .venv
source .venv/bin/activate # On Windows use `.venv\Scripts\activate`
# If using conda
conda create --name sedtrails-dev python=3.13
conda activate sedtrails-dev
Install the dependencies: (more details)
pip install -e .[dev]
Confirming the installation by typing on the terminal:
sedtrails -v
# The installed version should be displayed
For help:
sedtrails -h
Simulation Test
To fullly test your development environment, you can run a sample simulation using a provided dataset.
Download the dataset file named
inlet_sedtrails.ncfrom this link.Change the directory:
cd examples
In the file
config.example.yaml, update the directory forinput_datato read the downloaded dataset:input_data: ./<path-to/inlet_sedtrails.ncRun the model:
sedtrails run -c config.example.yaml