File tree Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -192,11 +192,26 @@ def _blocked_df_w_s(
192
192
193
193
194
194
def _blocked_dak (data : Any , * , histref : bh .Histogram | None = None ) -> bh .Histogram :
195
- return clone (histref ).fill (data )
195
+ import awkward as ak
196
+
197
+ thedata = data
198
+ if isinstance (thedata , ak .Array ) and ak .backend (thedata ) == "typetracer" :
199
+ thedata .layout ._touch_data (recursive = True )
200
+ thedata = data .layout .form .length_zero_array ()
201
+
202
+ return clone (histref ).fill (thedata )
196
203
197
204
198
205
def _blocked_dak_ma (* data : Any , histref : bh .Histogram | None = None ) -> bh .Histogram :
199
- return clone (histref ).fill (* data )
206
+ import awkward as ak
207
+
208
+ thedata = list (data )
209
+ for idata , adatum in enumerate (thedata ):
210
+ if isinstance (adatum , ak .Array ) and ak .backend (adatum ) == "typetracer" :
211
+ adatum .layout ._touch_data (recursive = True )
212
+ thedata [idata ] = adatum .layout .form .length_zero_array ()
213
+
214
+ return clone (histref ).fill (* tuple (thedata ))
200
215
201
216
202
217
def optimize (
You can’t perform that action at this time.
0 commit comments