From 3f76dc82a5480c653ff458c4c3dd479296bda81b Mon Sep 17 00:00:00 2001 From: Julia Dark Date: Tue, 14 Jan 2025 12:29:20 -0500 Subject: [PATCH] Update SOMA version number --- apis/python/src/tiledbsoma/_constants.py | 2 +- apis/python/src/tiledbsoma/_multiscale_image.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apis/python/src/tiledbsoma/_constants.py b/apis/python/src/tiledbsoma/_constants.py index ad5f75de45..5a43c10de4 100644 --- a/apis/python/src/tiledbsoma/_constants.py +++ b/apis/python/src/tiledbsoma/_constants.py @@ -17,7 +17,7 @@ SOMA_ENCODING_VERSION = "1.1.0" SOMA_SPATIAL_VERSION_METADATA_KEY = "soma_spatial_encoding_version" -SOMA_SPATIAL_ENCODING_VERSION = "0.1.0" +SOMA_SPATIAL_ENCODING_VERSION = "0.2.0" SPATIAL_DISCLAIMER = ( diff --git a/apis/python/src/tiledbsoma/_multiscale_image.py b/apis/python/src/tiledbsoma/_multiscale_image.py index 4d4a4d466c..7826cabecb 100644 --- a/apis/python/src/tiledbsoma/_multiscale_image.py +++ b/apis/python/src/tiledbsoma/_multiscale_image.py @@ -260,7 +260,7 @@ def __init__( spatial_encoding_version = self.metadata[SOMA_SPATIAL_VERSION_METADATA_KEY] if isinstance(spatial_encoding_version, bytes): spatial_encoding_version = str(spatial_encoding_version, "utf-8") - if spatial_encoding_version != "0.1.0": + if spatial_encoding_version not in {"0.1.0", "0.2.0"}: raise ValueError( f"Unsupported MultiscaleImage with spatial encoding version " f"{spatial_encoding_version}"