Closed quantumjot closed 2 years ago
Preview page for your plugin is ready here: https://preview.napari-hub.org/lowe-lab-ucl/arboretum/78 Updated: 2022-07-01T15:38:27.392683
Just checked the performance on some larger trees, it works great! 🚀
Merging #78 (7e21492) into main (bb23b25) will decrease coverage by
2.98%
. The diff coverage is96.20%
.
@@ Coverage Diff @@
## main #78 +/- ##
==========================================
- Coverage 96.28% 93.30% -2.99%
==========================================
Files 16 16
Lines 538 612 +74
==========================================
+ Hits 518 571 +53
- Misses 20 41 +21
Impacted Files | Coverage Δ | |
---|---|---|
napari_arboretum/visualisation/base_plotter.py | 91.86% <75.00%> (-0.83%) |
:arrow_down: |
napari_arboretum/visualisation/vispy_plotter.py | 85.13% <97.10%> (-12.40%) |
:arrow_down: |
napari_arboretum/plugin.py | 89.06% <100.00%> (ø) |
|
napari_arboretum/tree.py | 100.00% <100.00%> (ø) |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update bb23b25...7e21492. Read the comment docs.
Looks great! :) All trees show, the single-branch tracks are centred and the performance seems to be better than before (didn't run into the kernel crashing yet). But in the meantime, we lost the y-axis next to the tree [as in #46].
I did some profiling of the rendering code using
examples/show_large_tree.py
and 255 nodes (depth 8):It looks like a lot of the time is in adding subvisuals, so I had a go at setting things up with a single subvisual for all branches. This gets the performance to a much better state:
0.14 seconds versus 4.88 seconds. We will probably want to look at the graph searching algorithms at some point, but this is a good start.
This also merges the small changes in #77, so I will close that one.