Skip to content

Commit

Permalink
Update code
Browse files Browse the repository at this point in the history
  • Loading branch information
robertdstein committed Jul 31, 2024
1 parent cb2b93c commit 4a3df81
Show file tree
Hide file tree
Showing 2 changed files with 1,381 additions and 1,374 deletions.
4 changes: 3 additions & 1 deletion nuztf/neutrino_scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,9 @@ def unpack_skymap(self, skymap=None, output_nside: None | int = None):
# Take the larger of the two sides and convert to radians
# To make sure to include all pixels until the edge of the rectangle, we have to devide by sqrt(2)
# (not 2 as previously done here!)
rad = np.radians(max(self.ra_max - self.ra_min, self.dec_max - self.dec_min)) / np.sqrt(2)
rad = np.radians(
max(self.ra_max - self.ra_min, self.dec_max - self.dec_min)
) / np.sqrt(2)

nearish_pixels = list(
hp.query_disc(
Expand Down
Loading

0 comments on commit 4a3df81

Please sign in to comment.