Skip to content

Commit

Permalink
move numcodecs import inside
Browse files Browse the repository at this point in the history
  • Loading branch information
TomNicholas committed Oct 17, 2024
1 parent 0b9b697 commit 97d55cb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion virtualizarr/zarr.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import dataclasses
from typing import TYPE_CHECKING, Any, Literal, NewType, cast

import numcodecs
import numpy as np

if TYPE_CHECKING:
Expand Down Expand Up @@ -154,6 +153,8 @@ def _v3_codec_pipeline(self) -> list:
post_compressor: Iterable[BytesBytesCodec] #optional
```
"""
import numcodecs

if self.filters:
filter_codecs_configs = [
numcodecs.get_codec(filter).get_config() for filter in self.filters
Expand Down

0 comments on commit 97d55cb

Please sign in to comment.