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 04da264 commit 1687221Copy full SHA for 1687221
xarray/backends/pydap_.py
@@ -35,7 +35,7 @@
35
36
37
class PydapArrayWrapper(BackendArray):
38
- def __init__(self, array, batch=False, checksums=True):
+ def __init__(self, array, batch=None, checksums=True):
39
self.array = array
40
self._batch = batch
41
self._checksums = checksums
@@ -167,11 +167,11 @@ def open(
167
return cls(**args)
168
169
def open_store_variable(self, var):
170
- try:
+ if hasattr(var, "dims"):
171
dimensions = [
172
dim.split("/")[-1] if dim.startswith("/") else dim for dim in var.dims
173
]
174
- except AttributeError:
+ else:
175
# GridType does not have a dims attribute - instead get `dimensions`
176
# see https://github.com/pydap/pydap/issues/485
177
dimensions = var.dimensions
0 commit comments