Skip to content

Commit

Permalink
Use --instruments and --trigger-time
Browse files Browse the repository at this point in the history
  • Loading branch information
titodalcanton committed Jul 31, 2024
1 parent a54c3b7 commit 4ea8c1f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pycbc/tmpltbank/sky_grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,12 @@ def from_cli(cls, cli_parser, cli_args):
)
return cls.read_from_file(cli_args.sky_grid)
if cli_args.ra is not None and cli_args.dec is not None:
# FIXME where do we get the detectors and ref time from?
return cls([cli_args.ra], [cli_args.dec])
return cls(
[cli_args.ra],
[cli_args.dec],
cli_args.instruments,
cli_args.trigger_time
)
cli_parser.error(
'Please specify a sky grid via --sky-grid or a single sky '
'position via --ra and --dec'
Expand Down

0 comments on commit 4ea8c1f

Please sign in to comment.