Skip to content

Commit

Permalink
better comments
Browse files Browse the repository at this point in the history
  • Loading branch information
bhazelton committed Apr 10, 2023
1 parent dbc8f6b commit e369f72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyuvsim/uvsim.py
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,6 @@ def uvdata_to_task_iter(task_ids, input_uv, catalog, beam_list, beam_dict, Nsky_
# some additional overhead for numpy arrays as well
# usually seeing [0.00001, 0.00003] MiB / task memory required
# based on the reference simulations.
# Flatten inside the loop so that we always have the same thing in each loop.
order = np.lexsort((_bls[task_slice], _freqs[task_slice], _times[task_slice]))

tloc = [np.float64(x) for x in input_uv.telescope_location]
Expand Down Expand Up @@ -561,6 +560,7 @@ def uvdata_to_task_iter(task_ids, input_uv, catalog, beam_list, beam_dict, Nsky_
if sky.spectral_type != 'flat':
sky.at_frequencies(freq_array)

# Use flat here to get a 1D iterator
for index in order.flat:
task_index = task_ids[index]
# Shape indicates slowest to fastest index.
Expand Down

0 comments on commit e369f72

Please sign in to comment.