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 3ff1a9a commit ccd7954Copy full SHA for ccd7954
xarray/backends/pydap_.py
@@ -62,12 +62,10 @@ def _getitem(self, key):
62
# this are both True only for pydap>3.5.5
63
from pydap.lib import resolve_batch_for_all_variables
64
65
- parent = self.array.parent # could be root ds | group
66
- variables = list(parent.variables())
67
- resolve_batch_for_all_variables(parent, variables, key)
68
-
+ dataset = self.array.dataset
+ resolve_batch_for_all_variables(self.array, key)
69
result = np.asarray(
70
- parent.dataset._current_batch_promise.wait_for_result(self.array.id)
+ dataset._current_batch_promise.wait_for_result(self.array.id)
71
)
72
else:
73
result = robust_getitem(self.array, key, catch=ValueError)
0 commit comments