Skip to content

Commit

Permalink
Fixed test-fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
tkakar committed Oct 25, 2024
1 parent 4823e6a commit d7aef66
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
10 changes: 5 additions & 5 deletions src/portal_visualization/builder_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def process_hints(hints):
is_json = "json_based" in hints
is_spatial = "spatial" in hints
is_support = "is_support" in hints
is_segmentation_mask = "segmentation_mask" in hints
is_segmentation_base = "segmentation_base" in hints

return (
is_image,
Expand All @@ -46,7 +46,7 @@ def process_hints(hints):
is_json,
is_spatial,
is_support,
is_segmentation_mask,
is_segmentation_base,
)


Expand All @@ -72,13 +72,13 @@ def get_view_config_builder(entity, get_assaytype, parent=None, epic_uuid=None):
is_json,
is_spatial,
is_support,
is_segmentation_mask
is_segmentation_base
) = process_hints(hints)

# vis-lifted image pyramids
if parent is not None:
# TODO: For now epic (base image's) support datasets doesn't have any hints
if epic_uuid is not None:
if epic_uuid is not None or is_segmentation_base:
return SegImagePyramidViewConfBuilder

elif is_support and is_image:
Expand Down Expand Up @@ -142,5 +142,5 @@ def get_view_config_builder(entity, get_assaytype, parent=None, epic_uuid=None):


def has_visualization(entity, get_assaytype, parent=None):
builder = get_view_config_builder(entity, get_assaytype, parent, None)
builder = get_view_config_builder(entity, get_assaytype, parent, epic_uuid=None)
return builder != NullViewConfBuilder
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"primary": false,
"vitessce-hints": [
"is_image",
"is_support",
"pyramid"
"segmentation_base"
]
}

0 comments on commit d7aef66

Please sign in to comment.