Skip to content

Commit

Permalink
Fix incorrect usage of is vs ==
Browse files Browse the repository at this point in the history
  • Loading branch information
jotaylor committed Mar 25, 2024
1 parent 677ed20 commit f6a262b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions calcos/trace.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ def getScienceCentroid(rebinned_data, dq_array, xtract_info,
# Now calculate the background. Use the XTRACTAB reference file
# to determine the background regions but center them on the 'center'
# parameter
if backcorr is "OMIT":
if backcorr == "OMIT":
background = 0
else:
background = getBackground(rebinned_data, goodcolumns, regions)
Expand Down Expand Up @@ -507,7 +507,7 @@ def getCentroidError(events, info, goodcolumns, regions, backcorr):
counts_ij = rebinCounts(events, info)
#
# Now need to calculate the background
if backcorr is "OMIT":
if backcorr == "OMIT":
background = 0
else:
background = getBackground(counts_ij, goodcolumns, regions)
Expand Down

0 comments on commit f6a262b

Please sign in to comment.