Skip to content

Commit cd044c9

Browse files
authored
Fix local serving of spatialdata.zarr.zip (#479)
* Fix bug * Update version
1 parent 03f8e60 commit cd044c9

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "vitessce"
7-
version = "3.7.5"
7+
version = "3.7.6"
88
authors = [
99
{ name="Mark Keller", email="[email protected]" },
1010
]

src/vitessce/wrappers.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ def __init__(self, **kwargs):
7474
self.routes = []
7575
self.is_remote = False # TODO: change to needs_localhost_serving for clarity
7676
self.is_store = False # TODO: change to needs_store_registration for clarity
77+
self.is_zip = False
7778
self.file_def_creators = []
7879
self.base_dir = None
7980
self.stores = {}
@@ -1326,6 +1327,12 @@ def make_routes(self, dataset_uid, obj_i):
13261327
*self.get_local_file_route(dataset_uid, obj_i, self._adata_path, self.local_file_uid),
13271328
*self.get_local_file_route(dataset_uid, obj_i, self._ref_path, self.local_ref_uid)
13281329
]
1330+
elif self.is_zip:
1331+
return [
1332+
# TODO: modify so that the .zip file extension is used
1333+
# (not necessary, but could help with debugging or with base_dir mode)
1334+
*self.get_local_file_route(dataset_uid, obj_i, self._adata_path, self.local_dir_uid)
1335+
]
13291336
else:
13301337
return self.get_local_dir_route(dataset_uid, obj_i, self._adata_path, self.local_dir_uid)
13311338

0 commit comments

Comments
 (0)