Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Degurba Example #29

Draft
wants to merge 36 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
8734791
update docs
elbeejay Feb 28, 2024
0bcd030
Merge branch 'main' of github.com:worldbank/GOSTurban into update-docs
elbeejay Feb 29, 2024
2eb4db3
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 29, 2024
9f660ff
remove docs/notebooks
elbeejay Feb 29, 2024
c6ce3ca
Merge branch 'update-docs' of github.com:worldbank/GOSTurban into upd…
elbeejay Feb 29, 2024
be10311
Revert "[pre-commit.ci] auto fixes from pre-commit.com hooks"
elbeejay Feb 29, 2024
9420f8d
Revert "remove docs/notebooks"
elbeejay Feb 29, 2024
545ab38
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 29, 2024
5a8a7fa
modify toc to only include notebook tutorials, clear notebook outputs
elbeejay Feb 29, 2024
ebeb0bb
Merge branch 'update-docs' of github.com:worldbank/GOSTurban into upd…
elbeejay Feb 29, 2024
ed08bff
fix deps, imports, and ci
elbeejay Feb 29, 2024
c9f852f
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 29, 2024
419648a
generate conf.py as part of docs build workflow
elbeejay Feb 29, 2024
5e3578d
Merge branch 'update-docs' of github.com:worldbank/GOSTurban into upd…
elbeejay Feb 29, 2024
555845a
have workflow clean notebooks
elbeejay Feb 29, 2024
861c786
add extensions, options etc to _config.yml
elbeejay Feb 29, 2024
7c60f12
cleaned notebooks
elbeejay Feb 29, 2024
7ec9b65
remove non-functional exclusions
elbeejay Feb 29, 2024
4ebf1f5
build docs on prs, only deploy on main
elbeejay Feb 29, 2024
081bf9a
require nbconvert for docs
elbeejay Mar 1, 2024
a66f8c5
doc-strings for urbanraster.py
elbeejay Mar 12, 2024
0306d5e
doc-strings for step2
elbeejay Mar 12, 2024
3ec3ebd
lei.py docstrings
elbeejay Mar 12, 2024
522c775
urb doc-strings
elbeejay Mar 12, 2024
594004e
country_helper.py docstrings
elbeejay Mar 12, 2024
9f2f8ad
ignore words
elbeejay Mar 12, 2024
f5fa9c0
ignore more words
elbeejay Mar 12, 2024
88872dd
fix spellings
elbeejay Mar 12, 2024
8a66c39
fix spellings
elbeejay Mar 12, 2024
41ec26b
ignore another word
elbeejay Mar 12, 2024
66eb8cf
tomli to codepsell
elbeejay Mar 12, 2024
8773323
clean up doc-strings
elbeejay Mar 13, 2024
29bc9c8
clean up notebooks
elbeejay Mar 13, 2024
4bfd5f3
exclude implementation notebooks from ruff
elbeejay Mar 16, 2024
8b7c61f
finish cleaning up doc-strings
elbeejay Mar 16, 2024
9590759
new degurba example
elbeejay Mar 23, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
clean up doc-strings
  • Loading branch information
elbeejay committed Mar 13, 2024
commit 87733230a726a45788296a8ac5a18974a3580454
5 changes: 0 additions & 5 deletions src/GOSTurban/LEI.py
Original file line number Diff line number Diff line change
@@ -21,19 +21,14 @@ def mp_lei(
----------
curRxx : numpy array
raster data

transformxx : rasterio.transform
rasterio transformation object

idx_xx : int
index of the raster

old_list : list of ints, optional
Values in built area raster to consider old urban. The default is [4, 5, 6].

new_list : list of ints, optional
Values in built area raster to consider new urban. The default is [3].

buffer_dist : int, optional
distance to buffer new urban areas for comparison to old urban extents. The default is 300.

15 changes: 13 additions & 2 deletions src/GOSTurban/UrbanRaster.py
Original file line number Diff line number Diff line change
@@ -23,10 +23,21 @@
from shapely.geometry import shape, Polygon
from geopy.geocoders import Nominatim

"""prints the time along with the message"""


def tPrint(s):
"""
Print the time along with the message.

Parameters
----------
s : string
message to print

Returns
-------
None.

"""
print("%s\t%s" % (time.strftime("%H:%M:%S"), s))


Loading
Loading