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

Confusing daterange and bbox filter methods on ImageCollection classes #67

Closed
soxofaan opened this issue Jul 18, 2019 · 1 comment
Closed
Assignees

Comments

@soxofaan
Copy link
Member

Base class ImageCollection (in openeo.imagecollection)

  • defines date_range_filter(self, start_date,end_date)
    • not implemented (just pass)
    • flagged in docblock as deprecated (use filter_daterange instead)
  • defines filter_daterange(self, extent)
    • implemented basically by calling date_range_filter()

Child classes (ImageCollectionClient in openeo.rest and GeotrellisTimeSeriesImageCollection in GeoPyspark driver):

  • override date_range_filter(self, start_date,end_date) with actual implementation
  • no def of filter_daterange(self, extent)

Same pattern for bbox_filter and filter_bbox

So the deprecated methods are implemented and the new non-deprecated calls forward to deprecated implementations? Shouldn't it be the other way around?

@soxofaan soxofaan self-assigned this Jul 18, 2019
soxofaan added a commit to soxofaan/openeo-python-client that referenced this issue Jul 19, 2019
…s better

- add `ImageCollection.filter_temporal` (name closer to 0.4,x spec)
- allow more call patterns: without kwargs, with `start_date`/`end_date`, with `extent`
- add deprecate decoration to old variations `date_range_filter` and `filter_daterange`
- simplify API (`_filter_temporal`) that subclasses have to implement
- make sure old-style subclasses keep working
soxofaan added a commit to soxofaan/openeo-python-client that referenced this issue Jul 19, 2019
soxofaan added a commit to soxofaan/openeo-python-client that referenced this issue Jul 19, 2019
soxofaan added a commit to soxofaan/openeo-python-client that referenced this issue Jul 19, 2019
soxofaan added a commit to soxofaan/openeo-python-client that referenced this issue Jul 19, 2019
soxofaan added a commit to soxofaan/openeo-python-client that referenced this issue Jul 19, 2019
soxofaan added a commit to soxofaan/openeo-python-client that referenced this issue Jul 19, 2019
soxofaan added a commit to soxofaan/openeo-python-client that referenced this issue Jul 19, 2019
soxofaan added a commit to soxofaan/openeo-python-client that referenced this issue Jul 19, 2019
…s better

- add `ImageCollection.filter_temporal` (name closer to 0.4,x spec)
- allow more call patterns: without kwargs, with `start_date`/`end_date`, with `extent`
- add deprecate decoration to old variations `date_range_filter` and `filter_daterange`
- simplify API (`_filter_temporal`) that subclasses have to implement
- make sure old-style subclasses keep working
soxofaan added a commit to soxofaan/openeo-python-client that referenced this issue Jul 19, 2019
soxofaan added a commit to soxofaan/openeo-python-client that referenced this issue Jul 19, 2019
soxofaan added a commit to soxofaan/openeo-python-client that referenced this issue Jul 19, 2019
Make sure that date/datetime objects passed to `filter_temporal` function are properly converted to strings in the process graphs
soxofaan added a commit to soxofaan/openeo-python-client that referenced this issue Aug 5, 2019
…s better

- add `ImageCollection.filter_temporal` (name closer to 0.4,x spec)
- allow more call patterns: without kwargs, with `start_date`/`end_date`, with `extent`
- add deprecate decoration to old variations `date_range_filter` and `filter_daterange`
- simplify API (`_filter_temporal`) that subclasses have to implement
- make sure old-style subclasses keep working
soxofaan added a commit to soxofaan/openeo-python-client that referenced this issue Aug 5, 2019
soxofaan added a commit to soxofaan/openeo-python-client that referenced this issue Aug 5, 2019
Make sure that date/datetime objects passed to `filter_temporal` function are properly converted to strings in the process graphs
soxofaan added a commit to soxofaan/openeo-python-client that referenced this issue Aug 26, 2019
…s better

- add `ImageCollection.filter_temporal` (name closer to 0.4,x spec)
- allow more call patterns: without kwargs, with `start_date`/`end_date`, with `extent`
- add deprecate decoration to old variations `date_range_filter` and `filter_daterange`
- simplify API (`_filter_temporal`) that subclasses have to implement
- make sure old-style subclasses keep working
soxofaan added a commit to soxofaan/openeo-python-client that referenced this issue Aug 26, 2019
soxofaan added a commit to soxofaan/openeo-python-client that referenced this issue Aug 26, 2019
Make sure that date/datetime objects passed to `filter_temporal` function are properly converted to strings in the process graphs
@soxofaan
Copy link
Member Author

soxofaan commented Sep 4, 2019

issue resolved by #69

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant