Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
tskisner committed Nov 15, 2024
1 parent 784449e commit 95434d0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/toast/tests/ops_azimuth_intervals.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ def create_fake_data(self):
azimuth = None
elevation = None
flags = None
scans = None
if ob.comm_col_rank == 0:
start_time = 0.0 + float(ob.local_index_offset) / rate.to_value(u.Hz)
stop_time = start_time + float(ob.n_local_samples - 1) / rate.to_value(u.Hz)
Expand Down Expand Up @@ -142,6 +143,9 @@ def create_fake_data(self):
azimuth[bad_samps] = 10.0
elevation[bad_samps] = -10.0

if ob.comm_col is not None:
scans = ob.comm_col.bcast(scans, root=0)

ob.shared[defaults.times].set(stamps, offset=(0,), fromrank=0)
ob.shared[defaults.azimuth].set(azimuth, offset=(0,), fromrank=0)
ob.shared[defaults.elevation].set(elevation, offset=(0,), fromrank=0)
Expand Down

0 comments on commit 95434d0

Please sign in to comment.