Skip to content

Commit

Permalink
BUG: don't clean symmetric matrices
Browse files Browse the repository at this point in the history
  • Loading branch information
jklenzing committed Sep 7, 2023
1 parent 86e2fd8 commit c09bca9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pysatNASA/instruments/methods/general.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,10 @@ def clean(self):
coords = [key for key in self.data.coords.keys()]

for key in self.variables:
# Check for symmetric dims
unique_dims = len(self[key].dims) == len(np.unique(self[key].dims))
# Skip over the coordinates when cleaning
if key not in coords:
if key not in coords and unique_dims:
fill = self.meta[key, self.meta.labels.fill_val]

# Replace fill with nan
Expand Down

0 comments on commit c09bca9

Please sign in to comment.