From 2f3d9b156f36655d222a89fad172c8afeadbe914 Mon Sep 17 00:00:00 2001 From: jklenzing Date: Thu, 7 Sep 2023 11:26:51 -0400 Subject: [PATCH] BUG: skip check for pandas --- pysatNASA/instruments/methods/general.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pysatNASA/instruments/methods/general.py b/pysatNASA/instruments/methods/general.py index f51c42b8..a58d4001 100644 --- a/pysatNASA/instruments/methods/general.py +++ b/pysatNASA/instruments/methods/general.py @@ -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]