From a4167adc77a89d00eda75985b8ac881b5ea13712 Mon Sep 17 00:00:00 2001 From: Kyle Conroy Date: Tue, 29 Mar 2022 13:52:18 -0400 Subject: [PATCH] address review comments --- specreduce/tests/test_background.py | 1 + specreduce/tracing.py | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/specreduce/tests/test_background.py b/specreduce/tests/test_background.py index 2b914334..36a7b1a2 100644 --- a/specreduce/tests/test_background.py +++ b/specreduce/tests/test_background.py @@ -7,6 +7,7 @@ from specreduce.tracing import FlatTrace +# NOTE: same test image as in test_extract.py # Test image is comprised of 30 rows with 10 columns each. Row content # is row index itself. This makes it easy to predict what should be the # value extracted from a region centered at any arbitrary Y position. diff --git a/specreduce/tracing.py b/specreduce/tracing.py index 7a4d92bf..d5534464 100644 --- a/specreduce/tracing.py +++ b/specreduce/tracing.py @@ -62,7 +62,8 @@ def _bound_trace(self): def __add__(self, delta): """ - Return a copy of the trace shifted by delta pixels perpendicular to the axis being traced + Return a copy of the trace shifted "forward" by delta pixels perpendicular to the axis being + traced """ copy = deepcopy(self) copy.shift(delta) @@ -70,7 +71,8 @@ def __add__(self, delta): def __sub__(self, delta): """ - Return a copy of the trace shifted by delta pixels perpendicular to the axis being traced + Return a copy of the trace shifted "backward" by delta pixels perpendicular to the axis being + traced """ return self.__add__(-delta)