remove debug output
This commit is contained in:
parent
254dbaf2fd
commit
ba3b4a1235
1 changed files with 0 additions and 3 deletions
|
|
@ -115,7 +115,6 @@ export function coupledExecution<T extends {[name: string]: any}>(models: {[name
|
||||||
if (events.length > 0) {
|
if (events.length > 0) {
|
||||||
const [event, ...rest] = events;
|
const [event, ...rest] = events;
|
||||||
const destination = conns[model+'.'+event.name];
|
const destination = conns[model+'.'+event.name];
|
||||||
console.log(model, '.', event, destination);
|
|
||||||
if (destination === undefined) {
|
if (destination === undefined) {
|
||||||
// ignore
|
// ignore
|
||||||
console.log(`${model}.${event.name} goes nowhere`);
|
console.log(`${model}.${event.name} goes nowhere`);
|
||||||
|
|
@ -161,11 +160,9 @@ export function coupledExecution<T extends {[name: string]: any}>(models: {[name
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
state[modelName] = modelState;
|
state[modelName] = modelState;
|
||||||
}
|
}
|
||||||
console.log('all outputs:', allOutputs);
|
|
||||||
// 2. handle all output events (models' outputs may be inputs for each other)
|
// 2. handle all output events (models' outputs may be inputs for each other)
|
||||||
let finalOutputs = [];
|
let finalOutputs = [];
|
||||||
for (const [modelName, outputEvent] of allOutputs) {
|
for (const [modelName, outputEvent] of allOutputs) {
|
||||||
console.log('what about', modelName, outputEvent);
|
|
||||||
let newOutputs;
|
let newOutputs;
|
||||||
[newOutputs, state] = processOutputs(0, [outputEvent], modelName, state);
|
[newOutputs, state] = processOutputs(0, [outputEvent], modelName, state);
|
||||||
finalOutputs.push(...newOutputs);
|
finalOutputs.push(...newOutputs);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue