generated from linz/template-python-hello-world
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
### Motivation Refactoring to support TDE-1298 - only allow one link of each of the types `Collection`, `Parent`, `Self`. ### Modifications Added logic in `ImageryItem`s `add_link` method to recognise when a link of each type already exists. Added `__str__` method to `StacMediaType` and `Relation` types, and made sure the `Link` class will contain strings for `rel` and `type`. ### Verification `pytest`
- Loading branch information
Showing
3 changed files
with
18 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,6 @@ class StacMediaType(str, Enum): | |
For STAC Item | ||
""" | ||
|
||
def __str__(self) -> str: | ||
return self.value |