From e3569372b6fd0012d594e5c61a001a718d79fec8 Mon Sep 17 00:00:00 2001 From: Martin Durant Date: Thu, 9 Nov 2023 10:27:01 -0500 Subject: [PATCH] Reallow version override (but don't require) --- kerchunk/netCDF3.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/kerchunk/netCDF3.py b/kerchunk/netCDF3.py index f3311d66..7340fb59 100644 --- a/kerchunk/netCDF3.py +++ b/kerchunk/netCDF3.py @@ -28,7 +28,6 @@ class NetCDF3ToZarr(netcdf_file): def __init__( self, filename, - *args, storage_options=None, inline_threshold=100, max_chunk_size=0, @@ -70,16 +69,14 @@ def __init__( self.fp = fsspec.open(filename, **(storage_options or {})).open() magic = self.fp.read(4) assert magic[:3] == b"CDF" - version = magic[3] + version = kwargs.pop("version", None) or magic[3] self.fp.seek(0) super().__init__( self.fp, - *args, mmap=False, mode="r", maskandscale=False, version=version, - **kwargs, ) self.filename = filename # this becomes an attribute, so must ignore on write