OneZoom / OZtree

OneZoom Tree of Life Explorer
Other
91 stars 20 forks source link

Images are not shown for leaves without OTTs #903

Open davidebbo opened 1 week ago

davidebbo commented 1 week ago

Looking at the code, it may have been a deliberate decision, but it is not clear why: https://github.com/OneZoom/OZtree/blob/7453fdbf7596337da1a04bbe961446beb5c85637/modules/OZfunc.py#L476

This is a problem with the extinct tree, which has some leaves for which no OTT exists, and hence get no image. e.g.

hyanwong commented 1 week ago

I think this was because there weren't that many of them, so I didn't code the extra path (and perhaps was worried that it would slow down the query). I suspect it can be coded to be performant though?