Skip to content

Commit

Permalink
fixup! Issue #442 make collection metadata based normalization optional
Browse files Browse the repository at this point in the history
  • Loading branch information
soxofaan committed Sep 14, 2023
1 parent b58953b commit e5d5b40
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions openeo/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,14 +231,6 @@ def __init__(self, metadata: dict, dimensions: List[Dimension] = None):
if dim.type == "temporal":
self._temporal_dimension = dim

@classmethod
def get_or_create(cls, metadata: Union[dict, "CollectionMetadata", None]) -> CollectionMetadata:
"""Get or create CollectionMetadata from given argument."""
if isinstance(metadata, cls):
return metadata
else:
return cls(metadata=metadata or {})

def __eq__(self, o: Any) -> bool:
return isinstance(o, CollectionMetadata) and self._dimensions == o._dimensions

Expand Down

0 comments on commit e5d5b40

Please sign in to comment.