Skip to content

Commit

Permalink
fix(algo): Allow dynamic outputPort count
Browse files Browse the repository at this point in the history
  • Loading branch information
jourdain authored and floryst committed Aug 5, 2019
1 parent 0ddb241 commit 7459947
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/macro.js
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,7 @@ export function algo(publicAPI, model, numberOfInputs, numberOfOutputs) {
};

publicAPI.getNumberOfInputPorts = () => model.numberOfInputs;
publicAPI.getNumberOfOutputPorts = () => numberOfOutputs;
publicAPI.getNumberOfOutputPorts = () => numberOfOutputs || model.output.length;

publicAPI.getInputArrayToProcess = (inputPort) => {
const arrayDesc = model.inputArrayToProcess[inputPort];
Expand Down

0 comments on commit 7459947

Please sign in to comment.