Skip to content

Commit

Permalink
Tickets/sp 1629 (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoachim authored Oct 16, 2024
2 parents 965c5f2 + 8ec2c5f commit 17dec6c
Show file tree
Hide file tree
Showing 8 changed files with 677 additions and 181 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

from rubin_scheduler.scheduler import features
from rubin_scheduler.scheduler.basis_functions import BaseBasisFunction
from rubin_scheduler.scheduler.utils import IntRounded
from rubin_scheduler.scheduler.utils import IntRounded, match_hp_resolution
from rubin_scheduler.utils import DEFAULT_NSIDE, _angular_separation, ra_dec2_hpid


Expand Down Expand Up @@ -117,7 +117,7 @@ def __init__(self, ra, dec, airmass_range=[1.05, 2.7], nside=DEFAULT_NSIDE):

def check_feasibility(self, conditions):
result = False
airmass = conditions.airmass[self.hpid]
airmass = match_hp_resolution(conditions.airmass, nside_out=self.nside)[self.hpid]
if (np.min(self.airmass_range) <= airmass) & (airmass <= np.max(self.airmass_range)):
result = True
return result
Expand Down
Loading

0 comments on commit 17dec6c

Please sign in to comment.