From eeea5ba6aa3aeafda89bb73ef76db6fbfab849b4 Mon Sep 17 00:00:00 2001 From: Martin Durant Date: Fri, 17 Nov 2023 12:42:30 -0500 Subject: [PATCH] Fix tests following change to LazyReferenceMapper --- kerchunk/df.py | 5 ++++- kerchunk/tests/test_combine.py | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/kerchunk/df.py b/kerchunk/df.py index ae71ec57..7bd2bfb5 100644 --- a/kerchunk/df.py +++ b/kerchunk/df.py @@ -152,7 +152,10 @@ def refs_to_dataframe( fs, _ = fsspec.core.url_to_fs(url, **(storage_options or {})) out = LazyReferenceMapper.create( - record_size, root=url, fs=fs, categorical_threshold=categorical_threshold + record_size=record_size, + root=url, + fs=fs, + categorical_threshold=categorical_threshold, ) for k in sorted(refs): diff --git a/kerchunk/tests/test_combine.py b/kerchunk/tests/test_combine.py index 9ed3d42b..29ada5d2 100644 --- a/kerchunk/tests/test_combine.py +++ b/kerchunk/tests/test_combine.py @@ -310,7 +310,7 @@ def test_lazy_filler(tmpdir, refs): fs = fsspec.filesystem("file") tmpdir = str(tmpdir) - out = LazyReferenceMapper.create(10, tmpdir, fs) + out = LazyReferenceMapper.create(record_size=10, root=tmpdir, fs=fs) mzz = MultiZarrToZarr( [refs["single1"], refs["single2"]],