Skip to content

Commit

Permalink
fix tutorial bug
Browse files Browse the repository at this point in the history
  • Loading branch information
bhazelton committed Mar 28, 2024
1 parent 21421f7 commit 48a0862
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/uvdata_tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1521,6 +1521,7 @@ and :meth:`pyuvdata.UVData.diff_vis` methods.
.. code-block:: python
>>> import os
>>> from astropy.time import Time
>>> from pyuvdata import UVData
>>> from pyuvdata.data import DATA_PATH
>>> filename = os.path.join(DATA_PATH, 'day2_TDEM0003_10s_norx_1src_1spw.uvfits')
Expand All @@ -1537,8 +1538,9 @@ and :meth:`pyuvdata.UVData.diff_vis` methods.
>>> uvd1.sum_vis(uvd2, inplace=True)
>>> # override a particular parameter
>>> uvd1.instrument = "test instrument"
>>> uvd1.sum_vis(uvd2, inplace=True, override_params=["instrument"])
>>> rdate_obj = Time(np.floor(uvd1.time_array[0]), format="jd", scale="utc")
>>> uvd1.rdate = rdate_obj.strftime("%Y-%m-%d")
>>> uvd1.sum_vis(uvd2, inplace=True, override_params=["rdate"])
.. _large_files:

Expand Down

0 comments on commit 48a0862

Please sign in to comment.