Skip to content
Snippets Groups Projects

Selection wrappers: improve/optimize MergedSelection & TupleSelection

Merged Vanya Belyaev requested to merge vanya-selections-v5 into master
4 files
+ 330
7
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -94,6 +94,13 @@ def mergedSel ( name ) :
color = 'yellow' ,
style = 'filled' )
def tupleSel ( name ) :
return pydot.Node ( name ,
shape = 'component' ,
fillcolor = 'yellow' ,
color = 'yellow' ,
style = 'filled' )
def payloadSel ( name ) :
return pydot.Node ( name ,
shape = 'component' ,
@@ -120,9 +127,10 @@ def nodeSel ( sel ) :
name = sel.name()
try :
from PhysSelPython.Wrappers import AutomaticData, MergedSelection, PayloadSelection
from PhysSelPython.Wrappers import AutomaticData, MergedSelection, PayloadSelection, TupleSelection
if isinstance ( sel , AutomaticData ) : return tesSel ( name )
elif isinstance ( sel , MergedSelection ) : return mergedSel ( name )
elif isinstance ( sel , TupleSelection ) : return tupleSel ( name )
elif isinstance ( sel , PayloadSelection ) : return payloadSel ( name )
except :
Loading