From e337e8d6f7b6757454c67c9f8da084cb7d7c2d46 Mon Sep 17 00:00:00 2001
From: dcarron <daniel.carron@idiap.ch>
Date: Fri, 19 Jan 2024 16:07:56 +0100
Subject: [PATCH] [doc] Documentation fixes

---
 src/ptbench/engine/saliency/interpretability.py | 1 +
 src/ptbench/scripts/saliency/view.py            | 2 +-
 src/ptbench/scripts/train.py                    | 2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/ptbench/engine/saliency/interpretability.py b/src/ptbench/engine/saliency/interpretability.py
index 1275ea5d..dba6eee3 100644
--- a/src/ptbench/engine/saliency/interpretability.py
+++ b/src/ptbench/engine/saliency/interpretability.py
@@ -285,6 +285,7 @@ def _compute_binary_mask(
         the value False everywhere except at the positions inside
         the bounding boxes, which will be True.
     """
+
     binary_mask = numpy.zeros_like(saliency_map, dtype=numpy.bool_)
     for bbox in gt_bboxes:
         binary_mask[
diff --git a/src/ptbench/scripts/saliency/view.py b/src/ptbench/scripts/saliency/view.py
index 028b1417..af08086f 100644
--- a/src/ptbench/scripts/saliency/view.py
+++ b/src/ptbench/scripts/saliency/view.py
@@ -79,7 +79,7 @@ logger = setup(__name__.split(".")[0], format="%(levelname)s: %(message)s")
 @click.option(
     "--threshold",
     "-t",
-    help="""The pixel values above ``threshold``% of max value are kept in the
+    help="""The pixel values above ``threshold`` % of max value are kept in the
     original saliency map.  Everything else is set to zero.  The value proposed
     on [SCORECAM-2020]_ is 0.2.  Use this value if unsure.""",
     show_default=True,
diff --git a/src/ptbench/scripts/train.py b/src/ptbench/scripts/train.py
index e8149a41..b2663208 100644
--- a/src/ptbench/scripts/train.py
+++ b/src/ptbench/scripts/train.py
@@ -16,7 +16,7 @@ logger = setup(__name__.split(".")[0], format="%(levelname)s: %(message)s")
 
 
 def reusable_options(f):
-    """Options that can be re-used by top-level scripts (i.e. ``experiment```).
+    """Options that can be re-used by top-level scripts (i.e. ``experiment``).
 
     This decorator equips the target function ``f`` with all (reusable)
     ``train`` script options.
-- 
GitLab