From 91997c6e079f242df07eb9f66eae1b9451e16ad5 Mon Sep 17 00:00:00 2001 From: Sam Skillman Date: Thu, 22 Jun 2017 16:48:15 -0600 Subject: [PATCH 1/5] Release of v0.4.0. Major update to metadata searching. --- README.md | 5 ++++- descarteslabs/__init__.py | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b35d40d3..91034836 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,8 @@ Changelog ========= ## [Unreleased] + +## [0.4.0] - 2017-06-22 ### Changes - Major refactor of metadata.search * Introduction of "Products" through dl.metadata.products() @@ -103,7 +105,8 @@ Changelog ### Added - Initial release of client library -[Unreleased]: https://github.com/descarteslabs/descarteslabs-python/compare/v0.3.3...HEAD +[Unreleased]: https://github.com/descarteslabs/descarteslabs-python/compare/v0.4.0...HEAD +[0.4.0]: https://github.com/descarteslabs/descarteslabs-python/compare/v0.3.3...v0.4.0 [0.3.3]: https://github.com/descarteslabs/descarteslabs-python/compare/v0.3.2...v0.3.3 [0.3.2]: https://github.com/descarteslabs/descarteslabs-python/compare/v0.3.1...v0.3.2 [0.3.1]: https://github.com/descarteslabs/descarteslabs-python/compare/v0.3.0...v0.3.1 diff --git a/descarteslabs/__init__.py b/descarteslabs/__init__.py index 56ff668e..67218884 100644 --- a/descarteslabs/__init__.py +++ b/descarteslabs/__init__.py @@ -14,7 +14,7 @@ # flake8: noqa -__version__ = "0.3.3" +__version__ = "0.4.0" from .auth import Auth descartes_auth = Auth() From fc7e920ce593cfc6d4a92e3e82569b7b86fd685e Mon Sep 17 00:00:00 2001 From: Justin Poehnelt Date: Thu, 22 Jun 2017 16:54:20 -0600 Subject: [PATCH 2/5] pop bbox on morocco --- descarteslabs/services/places.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/descarteslabs/services/places.py b/descarteslabs/services/places.py index aafa1784..36b179c4 100644 --- a/descarteslabs/services/places.py +++ b/descarteslabs/services/places.py @@ -60,9 +60,8 @@ def find(self, path, **kwargs): >>> import descarteslabs as dl >>> from pprint import pprint >>> results = dl.places.find('morocco') - >>> pprint(results) - [{'bbox': [-17.013743, 21.419971, -1.031999, 35.926519], - 'id': 85632693, + >>> pprint(results.pop('bbox')) + [{'id': 85632693, 'name': 'Morocco', 'path': 'continent:africa_country:morocco', 'placetype': 'country', From 2019e0ee469349151223115cd52c5d5dedaa3596 Mon Sep 17 00:00:00 2001 From: Justin Poehnelt Date: Thu, 22 Jun 2017 16:59:47 -0600 Subject: [PATCH 3/5] do not want bbox --- descarteslabs/services/places.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/descarteslabs/services/places.py b/descarteslabs/services/places.py index 36b179c4..45e082a2 100644 --- a/descarteslabs/services/places.py +++ b/descarteslabs/services/places.py @@ -60,7 +60,8 @@ def find(self, path, **kwargs): >>> import descarteslabs as dl >>> from pprint import pprint >>> results = dl.places.find('morocco') - >>> pprint(results.pop('bbox')) + >>> results.pop('bbox') + >>> pprint(results) [{'id': 85632693, 'name': 'Morocco', 'path': 'continent:africa_country:morocco', From 491d84fbd019987d01d4ac2b4f4aa067bed87c97 Mon Sep 17 00:00:00 2001 From: Justin Poehnelt Date: Thu, 22 Jun 2017 17:02:48 -0600 Subject: [PATCH 4/5] time for some ultimate --- descarteslabs/services/places.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/descarteslabs/services/places.py b/descarteslabs/services/places.py index 45e082a2..0d29d451 100644 --- a/descarteslabs/services/places.py +++ b/descarteslabs/services/places.py @@ -60,7 +60,7 @@ def find(self, path, **kwargs): >>> import descarteslabs as dl >>> from pprint import pprint >>> results = dl.places.find('morocco') - >>> results.pop('bbox') + >>> results[0].pop('bbox') >>> pprint(results) [{'id': 85632693, 'name': 'Morocco', From d5d7d723d21aacc4b105f453f44907ea5ef9a79f Mon Sep 17 00:00:00 2001 From: Sam Skillman Date: Thu, 22 Jun 2017 17:06:00 -0600 Subject: [PATCH 5/5] doctests --- descarteslabs/services/places.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/descarteslabs/services/places.py b/descarteslabs/services/places.py index 0d29d451..9130f64e 100644 --- a/descarteslabs/services/places.py +++ b/descarteslabs/services/places.py @@ -60,7 +60,7 @@ def find(self, path, **kwargs): >>> import descarteslabs as dl >>> from pprint import pprint >>> results = dl.places.find('morocco') - >>> results[0].pop('bbox') + >>> _ = results[0].pop('bbox') >>> pprint(results) [{'id': 85632693, 'name': 'Morocco',