glue-viz/glue-openspace

Avoid removing and adding graph node when updating properties

Aperta

#1 aperta il 26 giu 2019

 (0 commenti) (0 reazioni) (0 assegnatari)Python (4 fork)github user discovery
enhancementhelp wanted

Metriche repository

Star
 (2 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

At the moment, whenever any aspect of a layer is changed, we remove the graph node from OpenSpace and add a new one (this is done in layer_artist.py). We should make sure that we only add the graph node once and then make updates by setting only the properties that need to be set. This can include:

  • Changing the data to be shown (e.g. if a subset changes, or the attributes for the RA/Dec change)
  • Color
  • Visibility
  • Transparency
  • Point size/brightness

Guida contributor