Skip to content

Commit 45b85f7

Browse files
shoyerXarray-Beam authors
authored andcommitted
Vendor rechunker.algorithm inside xarray-beam
Rechunker is deprecated and no longer maintained: pangeo-data/rechunker#160 In particular, it pins zarr=2, but we need to support zarr v3 in xarray-beam. PiperOrigin-RevId: 804545298
1 parent f517e80 commit 45b85f7

6 files changed

Lines changed: 957 additions & 5 deletions

File tree

LICENSE

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,3 +200,25 @@
200200
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201201
See the License for the specific language governing permissions and
202202
limitations under the License.
203+
204+
------------------
205+
206+
Copyright (c) 2020 Rechunker Developers
207+
208+
Permission is hereby granted, free of charge, to any person obtaining a copy
209+
of this software and associated documentation files (the "Software"), to deal
210+
in the Software without restriction, including without limitation the rights
211+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
212+
copies of the Software, and to permit persons to whom the Software is
213+
furnished to do so, subject to the following conditions:
214+
215+
The above copyright notice and this permission notice shall be included in all
216+
copies or substantial portions of the Software.
217+
218+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
219+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
220+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
221+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
222+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
223+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
224+
SOFTWARE.

pyproject.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ dependencies = [
2020
"apache_beam>=2.31.0",
2121
"dask",
2222
"immutabledict",
23-
"rechunker>=0.5.1",
2423
"zarr",
2524
"xarray",
2625
]
@@ -32,10 +31,10 @@ documentation = "https://xarray-beam.readthedocs.io"
3231
[project.optional-dependencies]
3332
tests = [
3433
"absl-py",
34+
"h5netcdf",
35+
"hypothesis",
3536
"pandas",
3637
"pytest",
37-
"scipy",
38-
"h5netcdf",
3938
]
4039
docs = [
4140
'myst-nb',

xarray_beam/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,4 @@
5252
DatasetToZarr,
5353
)
5454

55-
__version__ = '0.8.1' # automatically synchronized to pyproject.toml
55+
__version__ = '0.9.0' # automatically synchronized to pyproject.toml

xarray_beam/_src/rechunk.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@
3333

3434
import apache_beam as beam
3535
import numpy as np
36-
from rechunker import algorithm
3736
import xarray
3837

3938
from xarray_beam._src import core
39+
from xarray_beam._src import rechunker_algorithm as algorithm
4040

4141

4242
# pylint: disable=logging-not-lazy

0 commit comments

Comments
 (0)