Skip to content

Commit

Permalink
Fix get_entity_type
Browse files Browse the repository at this point in the history
  • Loading branch information
NickAkhmetov committed Dec 13, 2024
1 parent 936eb66 commit 524cbda
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.3.3
0.3.4
2 changes: 1 addition & 1 deletion src/portal_visualization/builder_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def get_view_config_builder(entity, get_entity, parent=None, epic_uuid=None):
return SegImagePyramidViewConfBuilder

elif is_support and is_image:
ancestor_assaytype = get_entity(parent).get("soft_assaytype")
ancestor_assaytype = get_entity(uuid=parent.get('uuid')).get("soft_assaytype")
if SEQFISH == ancestor_assaytype:
# e.g. parent = c6a254b2dc2ed46b002500ade163a7cc
# e.g. support = 9db61adfc017670a196ea9b3ca1852a0
Expand Down
3 changes: 2 additions & 1 deletion src/portal_visualization/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,8 @@ def get_vitessce_conf_cells_and_lifted_uuid(
# Otherwise, just try to visualize the data for the entity itself:
else: # pragma: no cover # We have separate tests for the builder logic
try:
Builder = get_view_config_builder(entity, self.get_entity(), parent, epic_uuid)
print("YES PARENTHESES")
Builder = get_view_config_builder(entity, self.get_entity, parent, epic_uuid)
builder = Builder(entity, self.groups_token, self.assets_endpoint)
vitessce_conf = builder.get_conf_cells(marker=marker)
except Exception as e:
Expand Down

0 comments on commit 524cbda

Please sign in to comment.