Skip to content

Commit

Permalink
fix metadata __str__ in case no bands dimension
Browse files Browse the repository at this point in the history
  • Loading branch information
jdries committed Jul 27, 2023
1 parent bad6ccd commit 32b2cf6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions openeo/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -446,4 +446,5 @@ def _repr_html_(self):
return render_component('collection', data=self._orig_metadata)

def __str__(self) -> str:
bands = self.band_names if self.has_band_dimension() else "no bands dimension"
return f"CollectionMetadata({self.extent} - {self.band_names} - {self.dimension_names()})"

0 comments on commit 32b2cf6

Please sign in to comment.