Skip to content

Commit 65b08d4

Browse files
benjefferymergify[bot]
authored andcommitted
Remove zarr workarounds and update zarr
1 parent 691a294 commit 65b08d4

File tree

5 files changed

+5
-14
lines changed

5 files changed

+5
-14
lines changed

requirements/CI-tests-complete/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ seaborn==0.11.1
1717
sortedcontainers==2.3.0
1818
tqdm==4.60.0
1919
tskit==0.4.1
20-
zarr==2.11.1
20+
zarr==2.11.3
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
lmdb==0.9.24
22
msprime==1.0.2
33
python-lmdb==0.96
4-
zarr==2.11.1
4+
zarr==2.11.3
55
h5py<3.4

requirements/development.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ humanize
99
daiquiri
1010
msprime >= 1.0.0
1111
tskit >= 0.4.1
12-
zarr!=2.11.0
12+
zarr!=2.11.0, !=2.11.1, !=2.11.2
1313
lmdb
1414
pytest
1515
pytest-xdist

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ def finalize_options(self):
8383
"daiquiri",
8484
"tskit>=0.3.7",
8585
"numcodecs>=0.6",
86-
# issues 965 and 967 at zarr-python prevent usage of 2.11.0
87-
"zarr>=2.2,!=2.11.0",
86+
# issues 965 and 967 at zarr-python prevent usage of 2.11.0 and 2.11.1
87+
"zarr>=2.2,!=2.11.0,!=2.11.1,!=2.11.2",
8888
"lmdb",
8989
"sortedcontainers",
9090
"attrs>=19.2.0",

tsinfer/formats.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,6 @@ def __init__(
406406
compressor=self._compressor,
407407
dtype=object,
408408
object_codec=self._metadata_codec,
409-
fill_value=None,
410409
)
411410
provenances_group.create_dataset(
412411
"record",
@@ -415,7 +414,6 @@ def __init__(
415414
compressor=self._compressor,
416415
dtype=object,
417416
object_codec=self._metadata_codec,
418-
fill_value=None,
419417
)
420418

421419
def __enter__(self):
@@ -949,7 +947,6 @@ def __init__(self, sequence_length=0, **kwargs):
949947
compressor=self._compressor,
950948
dtype=object,
951949
object_codec=self._metadata_codec,
952-
fill_value=None,
953950
)
954951
populations_group.attrs["metadata_schema"] = None
955952
self._populations_writer = BufferedItemWriter(
@@ -965,15 +962,13 @@ def __init__(self, sequence_length=0, **kwargs):
965962
compressor=self._compressor,
966963
dtype=object,
967964
object_codec=self._metadata_codec,
968-
fill_value=None,
969965
)
970966
location = individuals_group.create_dataset(
971967
"location",
972968
shape=(0,),
973969
chunks=chunks,
974970
compressor=self._compressor,
975971
dtype="array:f8",
976-
fill_value=None,
977972
)
978973
time = individuals_group.create_dataset(
979974
"time",
@@ -1050,7 +1045,6 @@ def __init__(self, sequence_length=0, **kwargs):
10501045
compressor=self._compressor,
10511046
dtype=object,
10521047
object_codec=self._metadata_codec,
1053-
fill_value=None,
10541048
)
10551049
sites_group.create_dataset(
10561050
"metadata",
@@ -1059,7 +1053,6 @@ def __init__(self, sequence_length=0, **kwargs):
10591053
compressor=self._compressor,
10601054
dtype=object,
10611055
object_codec=self._metadata_codec,
1062-
fill_value=None,
10631056
)
10641057

10651058
self._last_position = 0
@@ -2215,15 +2208,13 @@ def __init__(self, sample_data, **kwargs):
22152208
chunks=chunks,
22162209
dtype="array:i4",
22172210
compressor=self._compressor,
2218-
fill_value=None,
22192211
)
22202212
self.data.create_dataset(
22212213
"ancestors/haplotype",
22222214
shape=(0,),
22232215
chunks=chunks,
22242216
dtype="array:i1",
22252217
compressor=self._compressor,
2226-
fill_value=None,
22272218
)
22282219

22292220
self._alloc_ancestor_writer()

0 commit comments

Comments
 (0)