Skip to content

Commit

Permalink
Merge branch 'main' into CIF-247-Increase-unit-test-coverage-for-CIF
Browse files Browse the repository at this point in the history
  • Loading branch information
kcartier-wri committed Aug 23, 2024
2 parents 621c1e2 + 41b6828 commit d1c5730
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ The Cities Indicator Framework (CIF) is a set of Python tools to make it easier
* If all you want to do is use the CIF, the quickest way to get started is to use our [WRI Cities Indicator Framework Colab Notebook](https://colab.research.google.com/drive/1PV1H-godxJ6h42p74Ij9sdFh3T0RN-7j#scrollTo=eM14UgpmpZL-)

## Installation

* `pip install git+https://github.com/wri/[email protected]` to install a specific version.
* `pip install git+https://github.com/wri/cities-cif/releases/latest` gives you the latest stable release.
* `pip install git+https://github.com/wri/cities-cif` gives you the main branch with is not stable.

Expand Down
7 changes: 0 additions & 7 deletions city_metrix/layers/open_street_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,3 @@ def get_data(self, bbox):
osm_feature = osm_feature.reset_index()[keep_col]

return osm_feature

def write(self, output_path):
self.data['bbox'] = str(self.data.total_bounds)
self.data['osm_class'] = str(self.osm_class.value)

# Write to a GeoJSON file
self.data.to_file(output_path, driver='GeoJSON')
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ dependencies:
- xarray-spatial=0.3.7
- xee=0.0.3
- utm=0.7.0
- osmnx=1.8.1
- osmnx=1.9.0
- dask[complete]=2023.11.0
- matplotlib=3.8.2
- jupyterlab=4.0.10
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name="city_metrix",
version="0.1.1",
version="0.1.2",
description="Module to calculate various metrics on cities.",
packages=find_packages(),
include_package_data=True,
Expand Down

0 comments on commit d1c5730

Please sign in to comment.