Skip to content

Commit

Permalink
fix: avoid bitwise operator
Browse files Browse the repository at this point in the history
  • Loading branch information
ManonMarchand committed Jun 21, 2024
1 parent 45dfe4b commit cb2b65a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/mocpy/moc/plot/border.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ def border(moc, ax, wcs, **kw_mpl_pathpatch):

max_order = moc_to_plot.max_order
ipixels_open = moc_to_plot.flatten()
num_ipixels = 3 << (2 * (max_order + 1))

# Take the complement if the MOC covers more than half of the sky
num_ipixels = 3 << (2 * (max_order + 1))
sky_fraction = ipixels_open.shape[0] / float(num_ipixels)
sky_fraction = moc_to_plot.sky_fraction

if sky_fraction > 0.5:
ipixels_all = np.arange(num_ipixels)
Expand Down

0 comments on commit cb2b65a

Please sign in to comment.