From d6d8a33faa8f64dec3fb930ef9ba53f25b63ff1d Mon Sep 17 00:00:00 2001 From: ahijevyc Date: Mon, 9 Sep 2024 15:25:26 -0600 Subject: [PATCH] Fix some comments --- uxarray/core/dataarray.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/uxarray/core/dataarray.py b/uxarray/core/dataarray.py index 8fae278a9..a0b61931c 100644 --- a/uxarray/core/dataarray.py +++ b/uxarray/core/dataarray.py @@ -1198,9 +1198,10 @@ def neighborhood_filter( neighbor_indices = tree.query_radius(dest_coords, r=r) + # Construct numpy array for filtered variable. destination_data = np.empty(self.data.shape) - # assert last dimension is a GRID dimension. + # Assert last dimension is a GRID dimension. assert self.dims[-1] in GRID_DIMS, ( f"expected last dimension of uxDataArray {self.data.dims[-1]} " f"to be one of {GRID_DIMS}" @@ -1210,7 +1211,7 @@ def neighborhood_filter( if len(idx): destination_data[..., i] = func(self.data[..., idx]) - # construct data array for filtered variable + # Construct UxDataArray for filtered variable. uxda_filter = self._copy() uxda_filter.data = destination_data