Skip to content

Canonical way of receiving from two components #49

Answered by ago109
Maxbeth2 asked this question in Q&A
Discussion options

You must be logged in to vote

Hello there,

Great to hear you are messing around with ngc-learn-beta!

The canonical way of getting two or more inputs to combine together as input to the same compartment in ngc-learn is done via ngc-learn operators. By default, ngc-learn uses the overwrite operator which is why you will get what is being output from c_b.outputs overriding the output from a_b.outputs; the overwrite operator will just end up placing the most "recent" or last-wired-in output signal into your compartment j.

The way to get two or more incoming signals to be combined via addition (the two inputs should be summed, as per what you wish to do), you will need to use the summation operator. At the top of your scri…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Maxbeth2
Comment options

Answer selected by ago109
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants