Skip to content

Commit a74a571

Browse files
author
Lukas Molzberger
committed
Minor
1 parent 647886e commit a74a571

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/network/aika/lattice/OrNode.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,9 @@ protected void addActivation(OrEntry oe, NodeActivation inputAct) {
105105

106106
private Activation lookupActivation(Link ol, Predicate<Activation.Link> filter) {
107107
for(Activation.Link l: ol.getInputLinks(outputNeuron)) {
108-
for(Map.Entry<Integer, Relation> me: l.getSynapse().getRelations().entrySet()) {
108+
Synapse syn = l.getSynapse();
109+
Map<Integer, Relation> rels = syn.getRelations();
110+
for(Map.Entry<Integer, Relation> me: rels.entrySet()) {
109111
Integer relSynId = me.getKey();
110112
Relation rel = me.getValue();
111113

0 commit comments

Comments
 (0)