We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75219a5 commit 56ba62fCopy full SHA for 56ba62f
components/eamxx/scripts/compare_nc_files.py
@@ -1,6 +1,5 @@
1
-from utils import expect, ensure_netcdf4
2
-
3
-ensure_netcdf4()
+from utils import expect, _ensure_pylib_impl
+_ensure_pylib_impl("xarray")
4
5
import xarray as xr
6
import numpy as np
@@ -67,7 +66,7 @@ def compare_variables(self):
67
66
ds_tgt = xr.open_dataset(self._tgt_file)
68
69
success = True
70
- if self._compare == None or self._compare == []:
+ if self._compare is None or self._compare == []:
71
self._compare = []
72
# If compare is an empty list, compare all variables
73
print(f"Specific comparison variables not provided,\n"
0 commit comments