File tree Expand file tree Collapse file tree 2 files changed +10
-7
lines changed
Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -31,12 +31,12 @@ dependencies = [
3131 ' black>=21.11b1' ,
3232 ' numpy>=1.21.2' ,
3333 ' zarr>=2.5.0,<3' ,
34- ' numcodecs>=0.5.7' ,
35- ' anndata>=0.7.8' ,
34+ ' numcodecs>=0.5.7,<0.16.0 ' ,
35+ ' anndata>=0.7.8,<0.11.0 ' ,
3636 # scanpy < 1.10.3 does not support numpy >= 2.0.0 and does not
3737 # Reference: https://github.com/scverse/scanpy/pull/3115/files
3838 ' scanpy>=1.10.2' ,
39- ' ome-zarr<9 ' ,
39+ ' ome-zarr<0.10.3 ' ,
4040 ' tifffile>=2020.10.1' ,
4141 ' jsonschema>=3.2' ,
4242 ' tqdm>=4.1.0' ,
Original file line number Diff line number Diff line change @@ -130,10 +130,13 @@ def get_artifacts(self):
130130 def try_getting_artifact_stores (self ):
131131 artifact_stores = dict ()
132132 for artifact_url , artifact in self .artifacts .items ():
133- local_path = artifact ._local_filepath
134- if local_path is not None and os .path .isdir (local_path ):
135- store = zarr .DirectoryStore (local_path )
136- artifact_stores [artifact_url ] = store
133+ if hasattr (artifact , "_local_filepath" ):
134+ # The attribute ._local_filepath is deleted upon running .save()
135+ # Reference: https://github.com/laminlabs/lamindb/blob/58ee954c9f363524e2c47b358727f0b921467078/lamindb/models/save.py#L167
136+ local_path = artifact ._local_filepath
137+ if local_path is not None and os .path .isdir (local_path ):
138+ store = zarr .DirectoryStore (local_path )
139+ artifact_stores [artifact_url ] = store
137140 return artifact_stores
138141
139142 def get_stores (self , base_url , prefer_local = False ):
You can’t perform that action at this time.
0 commit comments