Skip to content

Commit

Permalink
remove infinite values from llh map
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Sommani committed Dec 10, 2024
1 parent ef5a1bf commit ae6b1ed
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions skyreader/plot/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -451,14 +451,14 @@ def bounding_box(ra, dec, theta, phi):
if llh_map:
# get rid of nan values only for the contours and
# avoiding crashes during plotting
#max_map = np.nanmax(equatorial_map)
max_map = np.nanmax(equatorial_map)
grid_values_for_contours = copy.copy(grid_value)
#grid_values_for_contours[
# np.isnan(grid_values_for_contours)
#] = max_map
#grid_values_for_contours = grid_values_for_contours.clip(
# None, max_map
#)
grid_values_for_contours = grid_values_for_contours.clip(
None, max_map
)
contour_levels_for_contours = contour_levels
else:
grid_values_for_contours = np.log(grid_value)
Expand Down

0 comments on commit ae6b1ed

Please sign in to comment.