Skip to content

Commit

Permalink
Fix some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ahijevyc committed Sep 9, 2024
1 parent 0c7bc1e commit d6d8a33
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions uxarray/core/dataarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand All @@ -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
Expand Down

0 comments on commit d6d8a33

Please sign in to comment.