From d73056966f52d0d3c0e58d6810634483ae892b60 Mon Sep 17 00:00:00 2001 From: Doug Davis Date: Thu, 2 Nov 2023 19:44:10 -0500 Subject: [PATCH] reuse other class method --- src/dask_awkward/layers/layers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dask_awkward/layers/layers.py b/src/dask_awkward/layers/layers.py index 86eca7ada..eef1a81a7 100644 --- a/src/dask_awkward/layers/layers.py +++ b/src/dask_awkward/layers/layers.py @@ -101,7 +101,7 @@ def mock_empty(self, backend: BackendT = "cpu") -> AwkwardArray: f"backend must be one of 'cpu', 'jax', or 'cuda', received {backend}" ) return ak.to_backend( - self._meta.layout.form.length_zero_array(highlevel=False), + self.mock().layout.form.length_zero_array(highlevel=False), backend=backend, highlevel=True, )