brisvag / blik

Python tool for visualising and interacting with cryo-ET and subtomogram averaging data.
https://brisvag.github.io/blik/
GNU General Public License v3.0
23 stars 8 forks source link

Fix particle layers clashing when created by different tools #162

Closed brisvag closed 6 months ago

brisvag commented 6 months ago

blik creates new layers by using the napari LayerDataTuple approach, which allows updating existing layers inplace. This is good for example for rerunning particle generation without cluttering the viewer with old bad layers. However, particles generated with different methods are probably intended to live in different layers. This PR ensures they are named differently so they don't clash (and cause index errors as well...)