Skip to content

Commit 01e06b8

Browse files
committed
1 parent 219561b commit 01e06b8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

openeo/metadata.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,8 @@ def __eq__(self, o: Any) -> bool:
283283
return isinstance(o, type(self)) and self._dimensions == o._dimensions
284284

285285
def __repr__(self) -> str:
286-
return f"{self.__class__.__name__}(dimensions={self._dimensions!r})"
286+
bands = self.band_names if self.has_band_dimension() else "no bands dimension"
287+
return f"{self.__class__.__name__}({bands} - {self.dimension_names()})"
287288

288289
def __str__(self) -> str:
289290
bands = self.band_names if self.has_band_dimension() else "no bands dimension"

0 commit comments

Comments
 (0)