Skip to content

Commit

Permalink
Merge branch 'main' of github.com:worldbank/GOSTurban into std-doc-st…
Browse files Browse the repository at this point in the history
…rings
  • Loading branch information
elbeejay committed Jun 18, 2024
2 parents a35943b + bad63ba commit 527b482
Show file tree
Hide file tree
Showing 12 changed files with 217 additions and 142 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -137,3 +137,6 @@ docs/notebooks/
# ignore the generated sphinx conf.py file
# we generate it during the doc build using jupyter-book from _conf.py
docs/conf.py

# ignore implementations output
notebooks/Implementations/output/
4 changes: 4 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,7 @@ repos:
args: [--fix]
- id: ruff-format
types_or: [python, pyi, jupyter]
- repo: https://github.com/kynan/nbstripout
rev: 0.7.1
hooks:
- id: nbstripout
14 changes: 14 additions & 0 deletions CITATION.cff
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
cff-version: 1.2.0
title: "GOSTurban"
abstract: "Multiple functions, tools, and tutorials for calculating urbanization based on gridded population data"
authors:
- affiliation: World Bank
family-names: Stewart
given-names: Benjamin P.
- affiliation: World Bank
family-names: Chamorro
given-names: Andres
keywords:
- Urban Analysis
repository-code: https://github.com/worldbank/GOSTurban
type: software
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,23 @@ pip install GOSTurban

1. Clone or download this repository to your local machine. Then, navigate to the root directory of the repository:

```shell
git clone https://github.com/worldbank/GOSTurban.git
cd GOSTurban
```
```shell
git clone https://github.com/worldbank/GOSTurban.git
cd GOSTurban
```

2. Create a virtual environment (optional but recommended):

```shell
python3 -m venv venv
source venv/bin/activate # On Windows, use `venv\Scripts\activate`
```
```shell
python3 -m venv venv
source venv/bin/activate # On Windows, use `venv\Scripts\activate`
```

3. Install the package with dependencies:

```shell
pip install .
```
```shell
pip install .
```

### Developer Installation

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "markdown",
"id": "9fd5e3dd",
"id": "0",
"metadata": {},
"source": [
"# Urbanization comparison\n",
Expand All @@ -20,7 +20,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "9c6da02f",
"id": "1",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -30,13 +30,14 @@
"import pandas as pd\n",
"import geopandas as gpd\n",
"\n",
"import GOSTurban.UrbanRaster as urban"
"import GOSTurban.UrbanRaster as urban\n",
"import GOSTurban"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "df1bf2ed",
"id": "2",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -51,7 +52,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "b135cd57",
"id": "3",
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -84,7 +85,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "97add9be",
"id": "4",
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -115,7 +116,17 @@
{
"cell_type": "code",
"execution_count": null,
"id": "50115a0d",
"id": "5",
"metadata": {},
"outputs": [],
"source": [
"dir(GOSTurban)"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "6",
"metadata": {},
"outputs": [],
"source": []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -444,8 +444,14 @@
}
],
"metadata": {
"kernelspec": {
"display_name": "worldbank",
"language": "python",
"name": "python3"
},
"language_info": {
"name": "python"
"name": "python",
"version": "3.10.13"
}
},
"nbformat": 4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "3d5639a9",
"id": "0",
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -35,7 +35,7 @@
},
{
"cell_type": "markdown",
"id": "79b8cf0a",
"id": "1",
"metadata": {},
"source": [
"# Mosaic the DoU layers"
Expand All @@ -44,7 +44,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "b7e89905",
"id": "2",
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -84,7 +84,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "e1c94276",
"id": "3",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -103,7 +103,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "5ad5ea55",
"id": "4",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -129,7 +129,7 @@
},
{
"cell_type": "markdown",
"id": "25e95213",
"id": "5",
"metadata": {},
"source": [
"# Mosaick data from PP"
Expand All @@ -138,7 +138,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "cd0122d2",
"id": "6",
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -177,7 +177,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "135aeb41",
"id": "7",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -196,7 +196,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "4b7350ea",
"id": "8",
"metadata": {},
"outputs": [],
"source": []
Expand Down
Loading

0 comments on commit 527b482

Please sign in to comment.