Spaces:
Running
Running
Commit ·
ed09e5e
1
Parent(s): 9ddf53b
clear
Browse files2993 unmodified lines29942995299629972998299959 unmodified lines305930603061306230633064306530662993 unmodified lines},async tick() {if (!this.running) return;var done1 = this.fixed.step >= this.horizon;var done2 = this.ai.step >= this.horizon;59 unmodified linesif (this.fixed.step >= this.horizon && this.ai.step >= this.horizon) {this.finish();} else if (this.running) {setTimeout(() => this.tick(), 0);}},finish() {2993 unmodified lines29942995299629972998299930003001300259 unmodified lines306230633064306530663067306830693070307130722993 unmodified lines},async tick() {if (!this.running) return;const STEPS_PER_TICK = 10;for (let _s = 0; _s < STEPS_PER_TICK; _s++) {if (!this.running) return;var done1 = this.fixed.step >= this.horizon;var done2 = this.ai.step >= this.horizon;59 unmodified linesif (this.fixed.step >= this.horizon && this.ai.step >= this.horizon) {this.finish();} else if (this.running) {if (_s === STEPS_PER_TICK - 1) setTimeout(() => this.tick(), 0);}this.updateUI();} // end for loopif (this.running) setTimeout(() => this.tick(), 0);},finish() {
app/viz/dashboard.py+7-1