spatialdata icon indicating copy to clipboard operation
spatialdata copied to clipboard

Error in function spatialdata.read_zarr for version mismatch

Open Keegan-366 opened this issue 4 months ago • 1 comments

Hello,I have a error in the follow code:

import scanpy as sc import pandas as pd import numpy as np import h5py import anndata as ad import matplotlib.pyplot as plt import squidpy as sq import spatialdata as sd import spatialdata_io as sio import spatialdata_plot

import warnings import os %load_ext autoreload %autoreload 2

warnings.filterwarnings("ignore")

core code

st_data.write(f"{output}/Allsamples_Rawdata.zarr",overwrite=True, format=None) successfully running

st_data_test = sd.read_zarr(f"{output}/Allsamples_Rawdata.zarr/")
version mismatch: detected: RasterFormatV02, requested: FormatV04 #error like this

print(sd.version) 0.4.0

Can youhelp me, thank you very much!

Keegan-366 avatar Sep 08 '25 12:09 Keegan-366

oh! I found that although an error was reported, it seems to have been read successfully. Is this the effect of forward compatibility? But for now, it hasn't been found whether there will be any impact on the future. It's very likely that everything will be normal, hahaha...

Keegan-366 avatar Sep 09 '25 01:09 Keegan-366