File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,10 @@ Deprecations
20
20
- Functions for reading and writing plink are deprecated, please use the `bio2zarr <https://github.com/sgkit-dev/bio2zarr >`_
21
21
and `vcztools <https://github.com/sgkit-dev/vcztools >`_ packages.
22
22
(:user: `tomwhite `, :pr: `1324 `, :issue: `1318 `)
23
+ - Using rechunker for rechunking in sgkit is deprecated, please use the the
24
+ `Xarray chunk <https://docs.xarray.dev/en/stable/generated/xarray.Dataset.chunk.html#xarray.Dataset.chunk >`_
25
+ function directly.
26
+ (:user: `tomwhite `, :pr: `1325 `)
23
27
24
28
.. Improvements
25
29
.. ~~~~~~~~~~~~
Original file line number Diff line number Diff line change 2
2
import logging
3
3
import tempfile
4
4
import time
5
+ import warnings
5
6
from pathlib import Path
6
7
from typing import (
7
8
Any ,
@@ -446,6 +447,11 @@ def rechunk_bgen(
446
447
will run inline so calls to it may be slow. The resulting Dataset is
447
448
generated based on the final, serialized Zarr data.
448
449
450
+ .. deprecated:: 0.11.0
451
+ Using rechunker for rechunking in sgkit is deprecated, please use the the
452
+ `Xarray chunk <https://docs.xarray.dev/en/stable/generated/xarray.Dataset.chunk.html#xarray.Dataset.chunk>`_
453
+ function directly.
454
+
449
455
Parameters
450
456
----------
451
457
ds
@@ -486,6 +492,12 @@ def rechunk_bgen(
486
492
Dataset
487
493
The rechunked dataset.
488
494
"""
495
+ warnings .warn (
496
+ "Using rechunker for rechunking in sgkit is deprecated, please use the the Xarray 'chunk' function directly." ,
497
+ DeprecationWarning ,
498
+ stacklevel = 2 ,
499
+ )
500
+
489
501
if isinstance (output , Path ):
490
502
output = str (output )
491
503
You can’t perform that action at this time.
0 commit comments