Skip to content

Commit

Permalink
Document more changes
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjstewart committed Jul 11, 2022
1 parent de525c0 commit cc553c4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions torchgeo/trainers/segmentation.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ def __init__(self, **kwargs: Any) -> None:
Raises:
ValueError: if kwargs arguments are invalid
.. versionchanged:: 0.3
The *ignore_zeros* parameter was renamed to *ignore_index*.
"""
super().__init__()

Expand Down
4 changes: 4 additions & 0 deletions torchgeo/transforms/indices.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,8 @@ class AppendSWI(AppendNormalizedDifferenceIndex):
If you use this index in your research, please cite the following paper:
* https://doi.org/10.3390/w13121647
.. versionadded:: 0.3
"""

def __init__(self, index_red: int, index_swir: int) -> None:
Expand All @@ -237,6 +239,8 @@ class AppendGNDVI(AppendNormalizedDifferenceIndex):
If you use this index in your research, please cite the following paper:
* https://doi.org/10.2134/agronj2001.933583x
.. versionadded:: 0.3
"""

def __init__(self, index_nir: int, index_green: int) -> None:
Expand Down

0 comments on commit cc553c4

Please sign in to comment.