aldebjer / pysim

Modelling and Simulation of Dynamical Systems
https://pysim.org
BSD 3-Clause "New" or "Revised" License
10 stars 1 forks source link

Connecting systems #7

Closed abdoufrk closed 7 years ago

abdoufrk commented 7 years ago

I can't connect two system using .connect function I can't even execute the example of connecting two systems I get the error wavesys has no attribute connect

aldebjer commented 7 years ago

The documentation seems not to be up to date here unfortunately, the function of connecting system is, since pysim 2.0 through a specific connections attribute. To connect the output output 1 from sys1 to input1 in sys2 type:

sys1.connections.add_connection("output1",sys2,"input1")

I will update the documentation as soon as possible.

abdoufrk commented 7 years ago

thank you so much.

aldebjer commented 7 years ago

The documentation at http://pys.im/doc is now updated.