Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
cshanahan1 committed Mar 25, 2024
1 parent 3628f2f commit aab26a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion specreduce/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)):
Expand Down

0 comments on commit aab26a4

Please sign in to comment.