I found the function, myfieldcombiner.SetWeights(). But I don't know how to specify the weights of the two inputs. for example: 1+0j and -1+0j.
how to set the weights of field combiner in python?
Here is an example I used in the past (with Sim4Life v3.0), maybe it works for you?
sim = document.AllSimulations results = sim.Results() sim_combiner = results.GetSimulationCombiner() sim_combiner.UpdateAttributes() weights = sim_combiner.GetChannelWeights() for n, channel in enumerate(weights): power, phase = weights[channel] weights[channel] = power, 45*n for channel in weights: print channel, weights[channel] sim_combiner.SetChannelWeight(channel, *weights[channel])