Skip to content

Commit

Permalink
BUG: skip check for pandas
Browse files Browse the repository at this point in the history
  • Loading branch information
jklenzing committed Sep 7, 2023
1 parent f463041 commit 2f3d9b1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pysatNASA/instruments/methods/general.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,12 @@ def clean(self):
for key in self.variables:
# Check for symmetric dims
# Indicates transformation matrix, xarray cannot broadcast
unique_dims = len(self[key].dims) == len(np.unique(self[key].dims))
if self.pands_format:
# True by default
unique_dims = True
else:
# Check for multiple dims
unique_dims = len(self[key].dims) == len(np.unique(self[key].dims))
# Skip over the coordinates when cleaning
if key not in coords and unique_dims:
fill = self.meta[key, self.meta.labels.fill_val]
Expand Down

0 comments on commit 2f3d9b1

Please sign in to comment.