Skip to content

Commit d7897af

Browse files
committed
update comments
1 parent 10df431 commit d7897af

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

src/pyuvdata/uvbase.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -780,6 +780,8 @@ def _get_param_axis(self, axis_name: str, single_named_axis: bool = False):
780780
# find the axis number(s) with the named shape.
781781

782782
attr = getattr(self, param)
783+
# Only look at where form is a tuple, since that's the only case we
784+
# can have a dynamically defined shape.
783785
if (
784786
attr.value is not None
785787
and isinstance(attr.form, tuple)
@@ -791,9 +793,7 @@ def _get_param_axis(self, axis_name: str, single_named_axis: bool = False):
791793
):
792794
continue
793795

794-
# Only look at where form is a tuple, since that's the only case we
795-
# can have a dynamically defined shape. Handle a repeated
796-
# param_name in the form.
796+
# Handle a repeated param_name in the form.
797797
ret_dict[attr.name] = np.nonzero(np.asarray(attr.form) == axis_name)[0]
798798
return ret_dict
799799

src/pyuvdata/uvdata/uvdata.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5727,8 +5727,9 @@ def __add__(
57275727
info["key_arrays"]["other"][info["other_inds_use"]],
57285728
)
57295729
)
5730+
# Figure out order -- how to sort each axis.
57305731
if axis == "Npols":
5731-
# order has info about how to sort each axis.
5732+
# weird handling for pol integers
57325733
info["order"] = np.argsort(np.abs(info["combined_key_arrays"]))
57335734
elif axis == "Nfreqs" and (
57345735
np.any(np.diff(this.freq_array) < 0)

0 commit comments

Comments
 (0)