Skip to content

Commit 0b872af

Browse files
Unpin numpy and bump ICF metadata version
Closes #258
1 parent 3d7bfec commit 0b872af

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# 0.1.2 2024-XX-XX
2+
3+
Breaking changes
4+
5+
- ICF metadata format version bumped to ensure long-term compatility between numpy 1.26.x
6+
and numpy >= 2. Existing ICFs will need to be recreated.
7+
18
# 0.1.1 2024-06-19
29

310
Maintenance release:

bio2zarr/vcf2zarr/icf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ class VcfPartition:
110110
num_records: int = -1
111111

112112

113-
ICF_METADATA_FORMAT_VERSION = "0.3"
113+
ICF_METADATA_FORMAT_VERSION = "0.4"
114114
ICF_DEFAULT_COMPRESSOR = numcodecs.Blosc(
115115
cname="zstd", clevel=7, shuffle=numcodecs.Blosc.NOSHUFFLE
116116
)

pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ authors = [
1111
{name = "sgkit Developers", email = "[email protected]"},
1212
]
1313
dependencies = [
14-
"numpy < 2",
14+
# Pin numpy to >= 1.26 because this enables ICF files to be supported
15+
# across numpy 1 and 2 (due to pickle format)
16+
"numpy >= 1.26",
1517
"zarr >= 2.17,< 3",
1618
"click",
1719
"tabulate",

0 commit comments

Comments
 (0)