MCPcopy Create free account
hub / github.com/microsoft/SandDance / newtuple

Function newtuple

docs/app/js/sanddance-app.js:116277–116281  ·  view source on GitHub ↗
(t, p)

Source from the content-addressed store, hash-verified

116275 return cell3;
116276 },
116277 newtuple (t, p) {
116278 const names = this._dnames, dims = this._dims, n = dims.length, x = {};
116279 for(let i = 0; i < n; ++i)x[names[i]] = dims[i](t);
116280 return p ? (0, _vegaDataflow.replace)(p.tuple, x) : (0, _vegaDataflow.ingest)(x);
116281 },
116282 clean () {
116283 const cells = this.value;
116284 for(const key in cells)if (cells[key].num === 0) delete cells[key];

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected