Skip to content

Commit f468aec

Browse files
committed
Adjust add_assay_details logic to fill the assaytype and vitessce hint information for descendants before calling has_visualization
1 parent 60841df commit f468aec

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/hubmap_translation/addl_index_transformations/portal/add_assay_details.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,11 @@ def get_assay_type_for_descendants(descendant):
193193
reverse=True)
194194
# If any remaining descendants have visualization data, set the parent's visualization to True
195195
for descendant in descendants:
196+
soft_assay_info = get_assay_type_for_descendants(descendant)
197+
198+
descendant['soft_assaytype'] = soft_assay_info.get('assaytype')
199+
descendant['vitessce-hints'] = soft_assay_info.get('vitessce-hints', [])
200+
196201
if has_visualization(descendant, get_assay_type_for_descendants, parent_uuid):
197202
doc['visualization'] = True
198203
break

0 commit comments

Comments
 (0)