diff --git a/virtualizarr/readers/kerchunk.py b/virtualizarr/readers/kerchunk.py index 49fdfe80..d15f1338 100644 --- a/virtualizarr/readers/kerchunk.py +++ b/virtualizarr/readers/kerchunk.py @@ -38,7 +38,9 @@ def open_virtual_dataset( fs = _FsspecFSFromFilepath(filepath=filepath, reader_options=reader_options) # The kerchunk .parquet storage format isn't actually a parquet, but a directory that contains named parquets for each group/variable. - if fs.filepath.endswith(".parquet") and fs.fs.isfile(f"{fs.filepath}/.zmetadata"): + if fs.filepath.endswith(".parquet") and fs.fs.isfile( + f"{fs.filepath}/.zmetadata" + ): from fsspec.implementations.reference import LazyReferenceMapper lrm = LazyReferenceMapper(filepath, fs.fs)