Skip to content

Commit

Permalink
WIP: add argument to temporarily override orbit
Browse files Browse the repository at this point in the history
  • Loading branch information
lpsinger committed Jul 20, 2021
1 parent 97738bc commit 55f228c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dorado/scheduling/scripts/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ def parser():
group.add_argument(
'--dorado-sensitivity', choices=('cbe', 'baseline', 'threshold'),
default='cbe', help='Dorado sensitivity')
group.add_argument('--orbit', help='Override orbit')

group = p.add_argument_group(
'discretization options',
Expand Down Expand Up @@ -116,6 +117,9 @@ def main(args=None):
raise AssertionError('this code should not be reached')

mission = getattr(_mission, args.mission)
if args.orbit is not None:
mission.orbit = _mission._read_orbit(args.orbit)

healpix = HEALPix(args.nside, order='nested', frame=ICRS())
sensitivity = {
'cbe': dorado.sensitivity.cbe,
Expand Down

0 comments on commit 55f228c

Please sign in to comment.