diff --git a/pyproject.toml b/pyproject.toml index 26e147b4..3051e3a5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "hatchling.build" [project] name = "vitessce" -version = "3.7.5" +version = "3.7.6" authors = [ { name="Mark Keller", email="mark_keller@hms.harvard.edu" }, ] diff --git a/src/vitessce/wrappers.py b/src/vitessce/wrappers.py index 208d41a5..c05bd532 100644 --- a/src/vitessce/wrappers.py +++ b/src/vitessce/wrappers.py @@ -74,6 +74,7 @@ def __init__(self, **kwargs): self.routes = [] self.is_remote = False # TODO: change to needs_localhost_serving for clarity self.is_store = False # TODO: change to needs_store_registration for clarity + self.is_zip = False self.file_def_creators = [] self.base_dir = None self.stores = {} @@ -1326,6 +1327,12 @@ def make_routes(self, dataset_uid, obj_i): *self.get_local_file_route(dataset_uid, obj_i, self._adata_path, self.local_file_uid), *self.get_local_file_route(dataset_uid, obj_i, self._ref_path, self.local_ref_uid) ] + elif self.is_zip: + return [ + # TODO: modify so that the .zip file extension is used + # (not necessary, but could help with debugging or with base_dir mode) + *self.get_local_file_route(dataset_uid, obj_i, self._adata_path, self.local_dir_uid) + ] else: return self.get_local_dir_route(dataset_uid, obj_i, self._adata_path, self.local_dir_uid)