Skip to content

Commit

Permalink
Minor improvement on docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
deeplook committed Aug 24, 2020
1 parent b7e2adc commit e6392a8
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions xyzspaces/datasets/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def get_countries_data():
The data contains 180 countries, and does not cover all existing countries,
ca. 200. For example the Vatican is missing.
:return: A json object.
:return: A JSON object.
"""
datasets_home = Path(__file__).parent
url_countries = (
Expand All @@ -64,7 +64,7 @@ def get_countries_data():
# Clean data for this specific file (simply remove features with ID "-99".)
# gj_countries = [f for f in gj_countries["features"] if f["id"] != "-99"]

# clean data to replace non-unique IDs (-99 appears twice) with new ones
# Clean data to replace non-unique IDs (-99 appears twice) with new ones:
for f in gj_countries["features"]:
if f["id"] == "-99":
name = f["properties"]["name"]
Expand All @@ -87,7 +87,11 @@ def get_chicago_parks_data():


def get_microsoft_buildings_space():
"""Creates a Datahub space object for Microsoft Buildings Dataset"""
"""Create a space object for the MS "US Buildings Footprints" dataset.
The original source for this dataset can be found on
https://github.com/Microsoft/USBuildingFootprints.
"""
microsoft_buildings_space = Space.from_id(MICROSOFT_BUILDINGS_SPACE_ID)

return microsoft_buildings_space

0 comments on commit e6392a8

Please sign in to comment.