Skip to content
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

ZMT zurich med tech

  1. Home
  2. Sim4Life
  3. Python API
  4. Change parameters in Simulation Combiner

Change parameters in Simulation Combiner

Scheduled Pinned Locked Moved Python API
2 Posts 2 Posters 430 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    ludwig
    wrote on last edited by
    #1

    How do I change the parameters of the Simulation Combiner algorithm using scripting with python?

    1 Reply Last reply
    0
    • C Offline
      C Offline
      Cosimo
      ZMT
      wrote on last edited by
      #2

      The following example for a 2-port simulation combiner should help.

      i = 0
      for channel in em_multi_port_simulation_combiner.GetChannelWeights():
          power = [1.0, 2.0]
          phase = [45, 90]
          em_multi_port_simulation_combiner.SetChannelWeight(channel, power[i], phase[i])
          i += 1
      
      em_multi_port_simulation_combiner.UpdateAttributes()
      em_multi_port_simulation_combiner.Update()
      
      document.AllAlgorithms.Add(em_multi_port_simulation_combiner)
      
      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Search