From 6018aa823357dbb4ad0b8a1e319e621e95efe586 Mon Sep 17 00:00:00 2001 From: weiqi-tori Date: Tue, 13 Aug 2024 16:49:12 +0800 Subject: [PATCH 1/3] upgrade osmnx version --- city_metrix/layers/open_street_map.py | 7 ------- environment.yml | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/city_metrix/layers/open_street_map.py b/city_metrix/layers/open_street_map.py index a56ff6b..8a32936 100644 --- a/city_metrix/layers/open_street_map.py +++ b/city_metrix/layers/open_street_map.py @@ -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') diff --git a/environment.yml b/environment.yml index 7e05978..24ec040 100644 --- a/environment.yml +++ b/environment.yml @@ -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 From 3187c4d81e396dc506cb0dde52b6b3c11ea5c9ec Mon Sep 17 00:00:00 2001 From: Chris Rowe Date: Tue, 20 Aug 2024 18:10:51 -0400 Subject: [PATCH 2/3] Update version to 0.1.2 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index cc94eb4..3124621 100644 --- a/setup.py +++ b/setup.py @@ -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, From 41b68284559c2677db44d351528af76238f93938 Mon Sep 17 00:00:00 2001 From: Chris Rowe Date: Tue, 20 Aug 2024 18:19:07 -0400 Subject: [PATCH 3/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6bd421b..6b23e83 100644 --- a/README.md +++ b/README.md @@ -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/cities-cif@v0.1.2` 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.