From aab26a4ab6e854ad0fe60103fa354bf9aa9f07e7 Mon Sep 17 00:00:00 2001 From: Clare Shanahan Date: Mon, 25 Mar 2024 00:38:29 -0400 Subject: [PATCH] . --- specreduce/utils/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specreduce/utils/utils.py b/specreduce/utils/utils.py index 74a38a4..887db8e 100644 --- a/specreduce/utils/utils.py +++ b/specreduce/utils/utils.py @@ -119,7 +119,7 @@ def measure_cross_dispersion_profile(image, trace=None, crossdisp_axis=0, # determine if there is one pixel/wavelength selected or many as either a # list or a tuple to specify a range if pixel is not None: - if not (pixel is None) ^ (pixel_range is None): + if pixel_range is not None: raise ValueError('Both `pixel` and `pixel_range` can not be set' ' simultaneously.') if isinstance(pixel, (int, float)):