Skip to content

Commit ba38507

Browse files
committed
Remove usage example from doctest
1 parent 27c119f commit ba38507

File tree

5 files changed

+22
-28
lines changed

5 files changed

+22
-28
lines changed

.github/workflows/ci-linux.yaml

+5-5
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
run: |
5252
conda activate env
5353
export DISABLE_NUMCODECS_AVX2=""
54-
python -m pip install -v -e .[test,test_extras,doctest,msgpack,zfpy,pcodec]
54+
python -m pip install -v -e .[test,test_extras,msgpack,zfpy,pcodec]
5555
5656
- name: List installed packages
5757
shell: "bash -l {0}"
@@ -74,8 +74,8 @@ jobs:
7474
- uses: codecov/codecov-action@v3
7575
with:
7676
#token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
77-
#files: ./coverage1.xml,./coverage2.xml # optional
78-
#flags: unittests # optional
79-
#name: codecov-umbrella # optional
80-
#fail_ci_if_error: true # optional (default = false)
77+
#files: ./coverage1.xml,./coverage2.xml # optional
78+
#flags: unittests # optional
79+
#name: codecov-umbrella # optional
80+
#fail_ci_if_error: true # optional (default = false)
8181
verbose: true # optional (default = false)

.github/workflows/ci-osx.yaml

+5-5
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
run: |
5252
conda activate env
5353
export DISABLE_NUMCODECS_AVX2=""
54-
python -m pip install -v -e .[test,test_extras,doctest,msgpack,zfpy,pcodec]
54+
python -m pip install -v -e .[test,test_extras,msgpack,zfpy,pcodec]
5555
5656
- name: List installed packages
5757
shell: "bash -l {0}"
@@ -68,8 +68,8 @@ jobs:
6868
- uses: codecov/codecov-action@v3
6969
with:
7070
#token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
71-
#files: ./coverage1.xml,./coverage2.xml # optional
72-
#flags: unittests # optional
73-
#name: codecov-umbrella # optional
74-
#fail_ci_if_error: true # optional (default = false)
71+
#files: ./coverage1.xml,./coverage2.xml # optional
72+
#flags: unittests # optional
73+
#name: codecov-umbrella # optional
74+
#fail_ci_if_error: true # optional (default = false)
7575
verbose: true # optional (default = false)

.github/workflows/ci-windows.yaml

+5-5
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
shell: "bash -l {0}"
4444
run: |
4545
conda activate env
46-
python -m pip install -v -e .[test,test_extras,doctest,msgpack,zfpy,pcodec]
46+
python -m pip install -v -e .[test,test_extras,msgpack,zfpy,pcodec]
4747
4848
- name: List installed packages
4949
shell: "bash -l {0}"
@@ -60,8 +60,8 @@ jobs:
6060
- uses: codecov/codecov-action@v3
6161
with:
6262
#token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
63-
#files: ./coverage1.xml,./coverage2.xml # optional
64-
#flags: unittests # optional
65-
#name: codecov-umbrella # optional
66-
#fail_ci_if_error: true # optional (default = false)
63+
#files: ./coverage1.xml,./coverage2.xml # optional
64+
#flags: unittests # optional
65+
#name: codecov-umbrella # optional
66+
#fail_ci_if_error: true # optional (default = false)
6767
verbose: true # optional (default = false)

numcodecs/bitinfo.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ class BitInfo(BitRound):
4040
been quantized creating erroneous results, which is apparent in
4141
the output. Do not use with quantized data in practice.
4242
43-
>>> import xarray as xr
44-
>>> ds = xr.tutorial.open_dataset("air_temperature")
45-
>>> from numcodecs import Blosc, BitInfo
46-
>>> compressor = Blosc(cname="zstd", clevel=3)
47-
>>> filters = [BitInfo(info_level=0.99)]
48-
>>> encoding = {"air": {"compressor": compressor, "filters": filters}}
49-
>>> _ = ds.to_zarr('xbit.zarr', mode="w", encoding=encoding)
43+
import xarray as xr
44+
ds = xr.tutorial.open_dataset("air_temperature")
45+
from numcodecs import Blosc, BitInfo
46+
compressor = Blosc(cname="zstd", clevel=3)
47+
filters = [BitInfo(info_level=0.99)]
48+
encoding = {"air": {"compressor": compressor, "filters": filters}}
49+
ds.to_zarr('xbit.zarr', mode="w", encoding=encoding)
5050
"""
5151

5252
codec_id = 'bitinfo'

pyproject.toml

-6
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,6 @@ test = [
6060
test_extras = [
6161
"importlib_metadata",
6262
]
63-
doctest = [
64-
"xarray",
65-
"pooch",
66-
"netCDF4",
67-
"zarr",
68-
]
6963
msgpack = [
7064
"msgpack",
7165
]

0 commit comments

Comments
 (0)