Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add max_tree_cover to get_data() #46

Merged
merged 3 commits into from
Jun 14, 2024
Merged

Conversation

tedw0ng
Copy link
Member

@tedw0ng tedw0ng commented Jun 7, 2024

Did you read the Contributor Guide?

Is this PR related to a JIRA ticket?

  • Yes, the URL of the associated JIRA ticket is https://gfw.atlassian.net/browse/CIF-XXX. The PR name follows the format [CIF-XXX] my subject.

  • No, this is a documentation update. The PR name follows the format [DOCS] my subject.

What changes were proposed in this PR?

How was this patch tested?

Did this PR include necessary documentation updates?

  • Yes, I am adding a new API feature.
  • Yes, I have updated the documentation update.
  • No, this PR does not affect any public API so no need to change the docs.

@@ -13,7 +13,7 @@ class TreeCover(Layer):

NO_DATA_VALUE = 255

def __init__(self, min_tree_cover=None, **kwargs):
def __init__(self, min_tree_cover=None, max_tree_cover=None, **kwargs):
super().__init__(**kwargs)
self.min_tree_cover = min_tree_cover
Copy link
Member

@weiqi-tori weiqi-tori Jun 11, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add self.max_tree_cover = max_tree_cover

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added that line.

@weiqi-tori weiqi-tori merged commit d29ee3f into main Jun 14, 2024
1 check failed
@weiqi-tori weiqi-tori deleted the add_max_tree_cover_to_tree_cover branch June 14, 2024 08:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants