Skip to content

Commit

Permalink
#76 and #97 having collection metadata in the client is optional (esp…
Browse files Browse the repository at this point in the history
…ecially in tests)
  • Loading branch information
jdries committed Nov 21, 2019
1 parent 0950064 commit c4ae7af
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion openeo/rest/imagecollectionclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@ def filter_bands(self, bands: List[Union[str, int]]) -> ImageCollection:
"""
new_collection = self.graph_add_process(process_id='filter_bands',
args={'data': {'from_node': self.node_id}, 'bands': bands})
new_collection.metadata.filter_bands(bands)
if new_collection.metadata is not None:
new_collection.metadata.filter_bands(bands)
return new_collection

@deprecated("use `filter_bands()` instead")
Expand Down

0 comments on commit c4ae7af

Please sign in to comment.