Skip to content

Commit

Permalink
Fixing indentations and name of variables, removing the calculation of
Browse files Browse the repository at this point in the history
the time delays for now
  • Loading branch information
jacquot committed Jan 8, 2025
1 parent 44eff8d commit 5afdbc6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
9 changes: 3 additions & 6 deletions bin/pycbc_make_sky_grid
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ parser.add_argument(
nargs="+",
type=str,
required=True,
help="List of instuments to analyze.",
help="List of instruments to analyze.",
)
parser.add_argument(
'--sky-error',
Expand Down Expand Up @@ -163,12 +163,9 @@ rota = r.apply(cart)
# Convert cartesian coordinates back to spherical coordinates
spher = cart_to_spher(rota)

# Calculate the time delays between the Earth center
# and each detector for each sky point
sky_grid = sky_grid.SkyGrid(
spher[:, 0], spher[:, 1], args.instruments, args.trigger_time
)
time_delays = sky_grid.calculate_time_delays()
spher[:, 0], spher[:, 1], args.instruments, args.trigger_time
)

extra_attributes = {
'trigger_ra': args.ra,
Expand Down
4 changes: 2 additions & 2 deletions pycbc/tmpltbank/sky_grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ def write_to_file(self, path, extra_attrs=None, extra_datasets=None):
hf.attrs['ref_gps_time'] = self.ref_gps_time
for attribute in (extra_attrs or {}):
hf.attrs[attribute] = extra_attrs[attribute]
for datasets in (extra_datasets or {}):
hf[datasets] = extra_datasets[datasets]
for dataset in (extra_datasets or {}):
hf[dataset] = extra_datasets[dataset]

def calculate_antenna_patterns(self):
"""Calculate the antenna pattern functions at each point in the grid
Expand Down

0 comments on commit 5afdbc6

Please sign in to comment.