Skip to content

Commit 795c899

Browse files
committed
codecov
1 parent 97bea53 commit 795c899

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

numcodecs/zarr3.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,6 @@ def compute_encoded_size(self, input_byte_length: int, chunk_spec: ArraySpec) ->
194194

195195
class ShuffleCodec(NumcodecsBytesBytesCodec):
196196
def __init__(self, codec_config: dict[str, JSON] | None = None) -> None:
197-
if codec_config is None:
198-
codec_config = {}
199197
super().__init__(codec_id="shuffle", codec_config=codec_config)
200198

201199
def evolve_from_array_spec(self, array_spec: ArraySpec) -> Self:
@@ -206,8 +204,6 @@ def evolve_from_array_spec(self, array_spec: ArraySpec) -> Self:
206204

207205
class FixedScaleOffsetCodec(NumcodecsArrayArrayCodec):
208206
def __init__(self, codec_config: dict[str, JSON] | None = None) -> None:
209-
if codec_config is None:
210-
codec_config = {}
211207
super().__init__(codec_id="fixedscaleoffset", codec_config=codec_config)
212208

213209
def resolve_metadata(self, chunk_spec: ArraySpec) -> ArraySpec:
@@ -223,8 +219,6 @@ def evolve_from_array_spec(self, array_spec: ArraySpec) -> Self:
223219

224220
class QuantizeCodec(NumcodecsArrayArrayCodec):
225221
def __init__(self, codec_config: dict[str, JSON] | None = None) -> None:
226-
if codec_config is None:
227-
codec_config = {}
228222
super().__init__(codec_id="quantize", codec_config=codec_config)
229223

230224
def evolve_from_array_spec(self, array_spec: ArraySpec) -> Self:
@@ -235,8 +229,6 @@ def evolve_from_array_spec(self, array_spec: ArraySpec) -> Self:
235229

236230
class AsTypeCodec(NumcodecsArrayArrayCodec):
237231
def __init__(self, codec_config: dict[str, JSON] | None = None) -> None:
238-
if codec_config is None:
239-
codec_config = {}
240232
super().__init__(codec_id="astype", codec_config=codec_config)
241233

242234
def resolve_metadata(self, chunk_spec: ArraySpec) -> ArraySpec:
@@ -251,8 +243,6 @@ def evolve_from_array_spec(self, array_spec: ArraySpec) -> Self:
251243

252244
class PackbitsCodec(NumcodecsArrayArrayCodec):
253245
def __init__(self, codec_config: dict[str, JSON] | None = None) -> None:
254-
if codec_config is None:
255-
codec_config = {}
256246
super().__init__(codec_id="packbits", codec_config=codec_config)
257247

258248
def resolve_metadata(self, chunk_spec: ArraySpec) -> ArraySpec:

0 commit comments

Comments
 (0)