Skip to content

Commit

Permalink
Fixing various docstring errors based on review
Browse files Browse the repository at this point in the history
  • Loading branch information
kartographer committed Jan 4, 2024
1 parent c34957b commit ac42d92
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions pyuvdata/uvdata/uvdata.py
Original file line number Diff line number Diff line change
Expand Up @@ -6018,9 +6018,10 @@ def set_uvws_from_antenna_positions(self, update_vis=True):
Parameters
----------
update_vis : bool
Option to update visibilities when recalculating uvws to. This should only
be set to False in limited circumstances (e.g., when certain metadata like
exact times are not trusted), as misuse can significantly corrupt data.
Option to update visibilities based on the new uvws (only has an effect if
visibilities have been phased). This should only be set to False in limited
circumstances (e.g., when certain metadata like exact times are not
trusted), as misuse can significantly corrupt data.

"""
telescope_location = self.telescope_location_lat_lon_alt
Expand Down Expand Up @@ -6076,14 +6077,15 @@ def update_antenna_positions(
value is a 3-element array corresponding to the ECEF/MCMF position relative
to the array center.
delta_antpos : bool
When set to True, uvws are updated be calculating the difference between
the old and new antenna positions. Thiis option should be used with care,
and should only be used when warrented (e.g., antenna positions are stored
with higher positions than the baselines). Default is False.
When set to True, uvws are updated by calculating the difference between
the old and new antenna positions. This option should be used with care,
and should only be used when warranted (e.g., antenna positions are stored
with higher precision than the baselines). Default is False.
update_vis : bool
Option to update visibilities when recalculating uvws to. This should only
be set to False in limited circumstances (e.g., when certain metadata like
exact times are not trusted), as misuse can significantly corrupt data.
Option to update visibilities based on the new uvws (only has an effect if
visibilities have been phased). This should only be set to False in limited
circumstances (e.g., when certain metadata like exact times are not
trusted), as misuse can significantly corrupt data.
"""
new_antpos = self.antenna_positions.copy()
for idx, ant in enumerate(self.antenna_numbers):
Expand Down

0 comments on commit ac42d92

Please sign in to comment.