Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/vfbquery/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
cache's version stamp can never drift apart.
"""

__version__ = "1.22.8"
__version__ = "1.22.9"
11 changes: 8 additions & 3 deletions src/vfbquery/vfb_queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -820,9 +820,14 @@ def term_info_parse_object(results, short_form):
if termInfo["IsIndividual"] and techniques:
termInfo["Technique"].extend(techniques)
termInfo["Technique"] = sorted(list(set(termInfo["Technique"])))
# add a query to `queries` list for listing all available images
q = ListAllAvailableImages_to_schema(termInfo["Name"], {"short_form":vfbTerm.term.core.short_form})
queries.append(q)
# add a query for listing all available images -- only for anatomy
# Class terms (get_instances expects a Class, per this query's own
# Class+Anatomy criteria). DataSets/Individuals that merely have
# images must not get it (they use DatasetImages etc.), otherwise a
# dataset shows a spurious "List all available images" query.
if contains_all_tags(termInfo["SuperTypes"], ["Class", "Anatomy"]):
q = ListAllAvailableImages_to_schema(termInfo["Name"], {"short_form":vfbTerm.term.core.short_form})
queries.append(q)

# If the term has channel images but not anatomy channel images, create thumbnails from channel images.
if vfbTerm.channel_image and len(vfbTerm.channel_image) > 0:
Expand Down
Loading