Commit 586dc662 authored by Alok Saldanha's avatar Alok Saldanha
Browse files

ensure annotation directory for new annotations

parent 76f3939f
......@@ -62,3 +62,8 @@ def make_h5ad(el):
def make_annotations(el):
return el[:-5] + annotations_suffix
def ensure_dir_exists(file_path):
if not os.path.exists(file_path):
......@@ -130,6 +130,7 @@ class FileItemSource(ItemSource):
item = self.lookup_item(h5ad_descriptor)
if item is not None:
return LookupResult(item, annotation_item)
item = self.lookup_item(descriptor)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment