Skip to content

Commit

Permalink
Update uvdata_tutorial.rst
Browse files Browse the repository at this point in the history
Updated plt.imshow(np.abs(uvd.data_array[bl_ind, 0, :, 0])) to instead be plt.imshow(np.abs(uvd.data_array[bl_ind, :, 0])), to take into account the use of the use_future_array_shapes=True boolean when using the UVData.from_file() method in this chunk of the tutorial. This boolean is described in documentation as: "Option to convert to the future planned array shapes before the changes go into effect by removing the spectral window axis."

On a cursory glance, this appears to be the only place in the tutorial where this comes up, but it could be worth checking that this is in fact the case.
  • Loading branch information
elillesk authored and bhazelton committed Sep 12, 2023
1 parent 6c456ee commit e5338dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/uvdata_tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -819,7 +819,7 @@ Note: there is now support for reading in only part of a uvfits, uvh5 or miriad
>>> bl_ind = np.where(uvd.baseline_array == bl)[0]
>>> # Amplitude waterfall for all spectral channels and 0th polarization
>>> plt.imshow(np.abs(uvd.data_array[bl_ind, 0, :, 0])) # doctest: +SKIP
>>> plt.imshow(np.abs(uvd.data_array[bl_ind, :, 0])) # doctest: +SKIP
>>> plt.show() # doctest: +SKIP
>>> # If using flexible spectral windows (flex_spw=True), plot the 0th window, 0th pol
Expand Down

0 comments on commit e5338dc

Please sign in to comment.