File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -204,6 +204,25 @@ def store(
204
204
"""Used when writing to any backend."""
205
205
from cubed .core .ops import store
206
206
207
+ compute = kwargs .pop ("compute" , True )
208
+ if not compute :
209
+ raise NotImplementedError ("Delayed compute is not supported." )
210
+
211
+ lock = kwargs .pop ("lock" , None )
212
+ if lock :
213
+ raise NotImplementedError ("Locking is not supported." )
214
+
215
+ regions = kwargs .pop ("regions" , None )
216
+ if regions :
217
+ # regions is either a tuple of slices or a collection of tuples of slices
218
+ if isinstance (regions , tuple ):
219
+ regions = [regions ]
220
+ for t in regions :
221
+ if not all (r == slice (None ) for r in t ):
222
+ raise NotImplementedError ("Only whole slices are supported for regions." )
223
+
224
+ kwargs .pop ("flush" , None ) # not used
225
+
207
226
return store (
208
227
sources ,
209
228
targets ,
You can’t perform that action at this time.
0 commit comments