Lines Matching refs:deltas
86 deltas = self._model.getDeltas(master_values, round=round)
87 base = deltas.pop(0)
88 return base, self.storeDeltas(deltas, round=noRound)
90 def storeDeltas(self, deltas, *, round=round): argument
91 deltas = [round(d) for d in deltas]
92 if len(deltas) == len(self._supports) + 1:
93 deltas = tuple(deltas[1:])
95 assert len(deltas) == len(self._supports)
96 deltas = tuple(deltas)
98 varIdx = self._cache.get(deltas)
108 return self.storeDeltas(deltas)
109 self._data.addItem(deltas, round=noRound)
112 self._cache[deltas] = varIdx
115 def VarData_addItem(self, deltas, *, round=round): argument
116 deltas = [round(d) for d in deltas]
119 countThem = len(deltas)
121 deltas = tuple(deltas[1:])
124 deltas = tuple(deltas)
125 self.Item.append(list(deltas))
164 def interpolateFromDeltasAndScalars(deltas, scalars): argument
166 for d,s in zip(deltas, scalars):
175 deltas = varData[major].Item[minor]
176 return self.interpolateFromDeltasAndScalars(deltas, scalars)
178 def interpolateFromDeltas(self, varDataIndex, deltas): argument
182 return self.interpolateFromDeltasAndScalars(deltas, scalars)