Skip to content

Commit

Permalink
code reorganization
Browse files Browse the repository at this point in the history
  • Loading branch information
maxwest-uw committed Dec 20, 2023
1 parent 4e0297f commit 4ffd9e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/kbmod/search/raw_image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ bool RawImage::center_is_local_max(double flux_thresh, bool local_max) const {
if (p != c_ind && local_max && pix_val >= center_val) {
return false;
}
sum += (pixels[p] != NO_DATA) ? pixels[p] : 0.0;
sum += (pix_val != NO_DATA) ? pix_val : 0.0;
}
if (sum == 0.0) return false;
return center_val / sum >= flux_thresh;
Expand Down

0 comments on commit 4ffd9e8

Please sign in to comment.