add ability to selecively disable ops

This commit is contained in:
Stewart Allen 2021-05-03 14:48:03 -04:00
commit e19c27170a
4 changed files with 19 additions and 2 deletions

View file

@ -131,7 +131,7 @@
let opSum = 0;
let opTot = opList.map(op => op.weight()).reduce((a,v) => a + v);
for (let op of proc.ops) {
for (let op of proc.ops.filter(op => !op.disabled)) {
let opfn = OPS[op.type];
if (opfn) {
let opin = new opfn(state, op);