Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
keller-mark committed Oct 4, 2024
1 parent 7745b2c commit a42c236
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion tests/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def test_config_add_anndata_artifact():
}

vc_artifacts = vc.get_artifacts()
assert vc_artifacts.keys() == ["http://example.com/adata.h5ad.zarr"]
assert list(vc_artifacts.keys()) == ["http://example.com/adata.h5ad.zarr"]
assert vc_artifacts["http://example.com/adata.h5ad.zarr"].name == "My anndata artifact"

def test_config_add_dataset_add_files():
Expand Down
10 changes: 4 additions & 6 deletions vitessce/wrappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1091,17 +1091,15 @@ def __init__(self, adata_path=None, adata_url=None, adata_store=None, adata_arti
self.is_remote = False
self.is_store = False
self.zarr_folder = 'anndata.zarr'
elif adata_url is not None:
self.is_remote = True
self.is_store = False
self.zarr_folder = None
elif adata_artifact is not None:
elif adata_url is not None or adata_artifact is not None:
self.is_remote = True
self.is_store = False
self.zarr_folder = None

# Store artifacts on AbstractWrapper.artifacts for downstream access,
# e.g. in lamindb.save_vitessce_config
self._adata_url = self.register_artifact(adata_artifact)
if adata_artifact is not None:
self._adata_url = self.register_artifact(adata_artifact)
if ref_artifact is not None:
self._ref_url = self.register_artifact(ref_artifact)
else:
Expand Down

0 comments on commit a42c236

Please sign in to comment.