snap-contrib / snapista

SNAP GPT thin layer for Python

Home Page:https://snap-contrib.github.io/snapista/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How can I define two sources for the operator SliceAssembly?

mbm87 opened this issue · comments

commented

Good afternoon,

I am trying to build up a graph which uses the operator SliceAssembly. The problem is that I do not know how to define two sources at the same time for the SliceAssembly operator

For instance:
step_prev1 = 'ThermalNoiseRemoval'
step_prev2 = 'ThermalNoiseRemoval(2)'

sliceop = Operator('SliceAssembly')
g.add_node(operator = sliceop, node_id = 'SliceAssembly', source = step_prev1, source = step_prev2)

This gives an error as I cannot establish two sources for the SliceAssembly operator.

Many thanks in advance.

commented

solved!
source = [step_prev1, step_prev2]