From cc553c4bb5a47ef5608059501eb4edd4d65c0eb1 Mon Sep 17 00:00:00 2001 From: "Adam J. Stewart" Date: Sun, 10 Jul 2022 20:16:06 -0700 Subject: [PATCH] Document more changes --- torchgeo/trainers/segmentation.py | 3 +++ torchgeo/transforms/indices.py | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/torchgeo/trainers/segmentation.py b/torchgeo/trainers/segmentation.py index a47d659c98..375f5207bc 100644 --- a/torchgeo/trainers/segmentation.py +++ b/torchgeo/trainers/segmentation.py @@ -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__() diff --git a/torchgeo/transforms/indices.py b/torchgeo/transforms/indices.py index ef373ab286..9344dda6e6 100644 --- a/torchgeo/transforms/indices.py +++ b/torchgeo/transforms/indices.py @@ -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: @@ -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: