Skip to content

Commit 7e74991

Browse files
MaHaWoiulusoy
andauthored
Update repo names, readme (#53)
* add readme badges * add language badge * rename onehealth-model-backend -> heiplanet-models * correct documentation badge * try to add sonarqube badge * remove sonarquebe badge b/c not working * correct quality gate status badge * add codecov badge * Update README.md Co-authored-by: Inga Ulusoy <inga.ulusoy@uni-heidelberg.de> --------- Co-authored-by: Inga Ulusoy <inga.ulusoy@uni-heidelberg.de>
1 parent 87d7d6c commit 7e74991

File tree

6 files changed

+58
-53
lines changed

6 files changed

+58
-53
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# This is a basic workflow to help you get started with Actions
22

33
name: CI
4-
5-
# Controls when the action will run.
4+
5+
# Controls when the action will run.
66
on:
77
# Triggers the workflow on push or pull request events but only for the main branch
88
push:
@@ -27,7 +27,7 @@ jobs:
2727
uses: actions/setup-python@v5
2828
with:
2929
python-version: ${{ matrix.python-version }}
30-
- name: install graphviz
30+
- name: install graphviz
3131
run: |
3232
sudo apt-get update
3333
sudo apt-get install -y graphviz
@@ -46,4 +46,4 @@ jobs:
4646
uses: codecov/codecov-action@v5
4747
with:
4848
token: ${{ secrets.CODECOV_TOKEN }}
49-
slug: ssciwr/onehealth-model-backend
49+
slug: ssciwr/heiplanet-models

README.md

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,29 @@
1-
# heiplanet-models
1+
# heiplanet-models
2+
3+
[![Top Language](https://img.shields.io/github/languages/top/ssciwr/heiplanet-models)](https://github.com/ssciwr/heiplanet-models)
4+
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=ssciwr_heiplanet-models&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=ssciwr_heiplanet-models)
5+
[![codecov](https://codecov.io/gh/ssciwr/heiplanet-models/graph/badge.svg?token=ZIgvUHnpkD)](https://codecov.io/gh/ssciwr/heiplanet-models)
6+
[![Documentation](https://img.shields.io/badge/Documentation-online-brightgreen)](https://ssciwr.github.io/heiplanet-models/) [![License](https://img.shields.io/github/license/ssciwr/heiplanet-models)](https://github.com/ssciwr/heiplanet-models/blob/main/LICENSE)
27

38
## Description
4-
This repository consists of a collection of models that share the same infrastructure code, used for the [heiplanet project](http://129.206.4.157/).
9+
This repository consists of a collection of models that share the same infrastructure code, used for the [heiplanet project](http://129.206.4.157/)
510

611

7-
## Installation
12+
## Installation
813
## For usage
9-
It is strongly recommended to use a virtual environment to install packages into. This will keep the package self-contained without its dependencies polluting the system, e.g. with python venv:
14+
It is strongly recommended to use a virtual environment to install packages into. This will keep the package self-contained without its dependencies polluting the system, e.g. with python venv:
1015

1116
```bash
12-
python3 -m venv .venv # creates a venv name 'venv' in a hidden directory on unix
17+
python3 -m venv .venv # creates a venv name 'venv' in a hidden directory on unix
1318

1419
source ./.venv/bin/activate # activate the environment
1520
```
1621

1722
Then, install the package from pypi:
18-
```bash
19-
pip install heiplanet-models
23+
```bash
24+
pip install heiplanet-models
2025
```
21-
In order to be able to visualize the computational graphs of the models you use or build, you need to install the package with the `viz` option. This will install the graphviz python package which will take care of the visualization.
26+
In order to be able to visualize the computational graphs of the models you use or build, you need to install the package with the `viz` option. This will install the graphviz python package which will take care of the visualization.
2227

2328
```bash
2429
pip install heiplanet-models[viz]
@@ -28,25 +33,25 @@ Note that if you are using zsh (default on macos), you need to add quotes
2833
```bash
2934
pip install "heiplanet-models[viz]"
3035
```
31-
Graphviz itself has additional dependencies it needs to install. For more details, see [here](https://github.com/xflr6/graphviz?tab=readme-ov-file#installation).
36+
Graphviz itself has additional dependencies it needs to install. For more details, see [here](https://github.com/xflr6/graphviz?tab=readme-ov-file#installation).
3237

33-
## For development
34-
Clone the repository
38+
## For development
39+
Clone the repository
3540

3641
```bash
37-
git clone https://github.com/ssciwr/onehealth-model-backend.git
42+
git clone https://github.com/ssciwr/heiplanet-models.git
3843
```
3944
Create some virtual environment as described above.
40-
Then, go to the base directory of the repository, and run
45+
Then, go to the base directory of the repository, and run
4146
```bash
4247
pip install -e .
4348
```
44-
or including the graphviz dependency:
49+
or including the graphviz dependency:
4550

4651
```bash
4752
pip install -e .[viz]
4853
```
49-
again, you need to take care of shell specifics, e.g. on zsh:
54+
again, you need to take care of shell specifics, e.g. on zsh:
5055

5156
```bash
5257
pip install -e ".[viz]"

docs/getting_started.md

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,74 +1,74 @@
1-
# Getting started
1+
# Getting started
22

33

44
## What is `heiplanet-models` all about?
55
This package bundles the model implementation for the [heiplanet project](TODO) and provides a development platform for their maintenance and extension as well as the addition of new model code.
6-
All models are implemented in Python using xarray, geopandas, and numpy, but additional dependencies can be added as needed.
6+
All models are implemented in Python using xarray, geopandas, and numpy, but additional dependencies can be added as needed.
77

88

99
## Installation
10-
If you want to use the models that exist in `heiplanet-models`, execute the following steps to install the package:
10+
If you want to use the models that exist in `heiplanet-models`, execute the following steps to install the package:
1111

12-
- Make a new virtual environment, e.g., with python `venv`:
12+
- Make a new virtual environment, e.g., with python `venv`:
1313
```bash
14-
python -m venv venv
14+
python -m venv venv
1515
```
16-
In this case, the new environment will be called `venv`. This can then be activated with:
16+
In this case, the new environment will be called `venv`. This can then be activated with:
1717

18-
```bash
19-
source ./venv/bin/activate
20-
```
21-
Virtual environment are a great way to bundle the dependencies of a project, e.g., `heiplanet-models` in one place without polluting your system's python distribution or intefering with dependencies of other projects. With virtual environments, you can have an arbitrary number of isolated projects running alongside each other without interference.
18+
```bash
19+
source ./venv/bin/activate
20+
```
21+
Virtual environment are a great way to bundle the dependencies of a project, e.g., `heiplanet-models` in one place without polluting your system's python distribution or intefering with dependencies of other projects. With virtual environments, you can have an arbitrary number of isolated projects running alongside each other without interference.
2222

2323

24-
- Install the package:
25-
To get the current release, after activating the virtual environment, type:
24+
- Install the package:
25+
To get the current release, after activating the virtual environment, type:
2626

27-
```bash
27+
```bash
2828
python -m pip install heiplanet-models
2929
```
30-
This will pull in the package and all its basic dependencies.
30+
This will pull in the package and all its basic dependencies.
3131

3232

3333
## Installation for development
34-
The steps for creating and activating a virtual environment stay the same. Execute those first. Then:
34+
The steps for creating and activating a virtual environment stay the same. Execute those first. Then:
3535

36-
- Download the repository
36+
- Download the repository
3737

3838
```bash
39-
git clone https://github.com/ssciwr/onehealth-model-backend.git
39+
git clone https://github.com/ssciwr/heiplanet-models.git
4040
```
4141

42-
- After creating and activating a new virtual environment, go to the base directory of the repository, and run
42+
- After creating and activating a new virtual environment, go to the base directory of the repository, and run
4343

4444
```bash
4545
pip install -e .[dev,docs]
4646
```
4747
This will install the version of the code on the current `main` branch in `editable` mode, such that changes you make are immediatelly reflected in the importable package. It will also add additional dependencies for unit-testing and for building the documentation.
4848

49-
In order to be able to visualize the computational graphs of the models you use or build, you need to install the package with the `viz` option. This will install the graphviz package which will take care of the visualization.
49+
In order to be able to visualize the computational graphs of the models you use or build, you need to install the package with the `viz` option. This will install the graphviz package which will take care of the visualization.
5050

5151
```bash
5252
pip install .[viz]
5353
```
54-
or, on macos:
54+
or, on macos:
5555

5656
```bash
5757
pip install ".[viz]"
5858
```
59-
Graphviz itself has additional dependencies it needs to install. For more details, see [here](https://github.com/xflr6/graphviz?tab=readme-ov-file#installation).
59+
Graphviz itself has additional dependencies it needs to install. For more details, see [here](https://github.com/xflr6/graphviz?tab=readme-ov-file#installation).
6060

6161

62-
## Building the documentation
63-
If you want to build the documentation locally, you need to clone the repostiroy as explained above and have to install the package with the `docs` option. Then, from the root directory of the repository, execute
64-
```bash
65-
mkdocs serve
62+
## Building the documentation
63+
If you want to build the documentation locally, you need to clone the repostiroy as explained above and have to install the package with the `docs` option. Then, from the root directory of the repository, execute
64+
```bash
65+
mkdocs serve
6666
```
6767

68-
the output should contain a line similar to this:
68+
the output should contain a line similar to this:
6969

70-
```bash
70+
```bash
7171
INFO - [12:51:53] Browser connected: http://127.0.0.1:8000/api/
7272
```
7373

74-
which is a local URL under which the documentation can be viewed in your browser.
74+
which is a local URL under which the documentation can be viewed in your browser.

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ If you're in a hurry and know what you are doing, go to the ['Getting started' s
44

55
After that, learn how to use the provided models in the ['Using existing models' section](using_existing_models.md) and how to customize them or build new ones in the ['Create new models' part](create_new_model.md).
66

7-
If you find any bugs, or have an idea for a feature that should be added, please open an issue [here](https://github.com/ssciwr/onehealth-model-backend/issues), or if you know right away what to do to fix it, feel free to contribute to this project by opening a pull request with your suggested code [here](https://github.com/ssciwr/onehealth-model-backend/pulls).
7+
If you find any bugs, or have an idea for a feature that should be added, please open an issue [here](https://github.com/ssciwr/heiplanet-models/issues), or if you know right away what to do to fix it, feel free to contribute to this project by opening a pull request with your suggested code [here](https://github.com/ssciwr/heiplanet-models/pulls).
88

99
Have fun!

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ docs = [
5252
]
5353

5454
[project.urls]
55-
Homepage = "https://github.com/ssciwr/onehealth-model-backend"
56-
Issues = "https://github.com/ssciwr/onehealth-model-backend/issues"
55+
Homepage = "https://github.com/ssciwr/heiplanet-models"
56+
Issues = "https://github.com/ssciwr/heiplanet-models/issues"
5757

5858
# tool-specific configurations
5959
[tool.hatch.build.targets.wheel]

src/heiplanet_models/Pmodel/Pmodel_initial.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
"""Initial data loading and preprocessing utilities for the OneHealth model backend.
1+
"""Initial data loading and preprocessing utilities for the heiplanet model backend.
22
33
This module provides functions to efficiently load, preprocess, and align large
4-
geospatial datasets (temperature, rainfall, population) for use in the OneHealth
5-
model. It supports chunked reading via Dask, robust error handling, and logging.
4+
geospatial datasets (temperature, rainfall, population) for use in the PModel.
5+
It supports chunked reading via Dask, robust error handling, and logging.
66
77
Typical usage example:
88
model_input = load_data()

0 commit comments

Comments
 (0)