Skip to content

Commit 1f1d30f

Browse files
authored
Merge pull request #158 from cswarth/WHY-2306-constraints-hotfix
refactor track() -> update()
2 parents ff8a104 + 9e30a52 commit 1f1d30f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/whylogs/core/statistics/constraints.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def __init__(self, op: Op, value, name: str = None, verbose=False):
8888
def name(self):
8989
return self._name if self._name is not None else f'value {Op.Name(self.op)} {self.value}'
9090

91-
def track(self, v) -> bool:
91+
def update(self, v) -> bool:
9292
self.total += 1
9393
if not self.func(v):
9494
self.failures += 1
@@ -252,7 +252,7 @@ def to_protobuf(self) -> SummaryConstraintMsgs:
252252
return scmsg
253253
return None
254254

255-
def track(self, v):
255+
def update(self, v):
256256
for c in self.constraints:
257257
c.update(v)
258258

0 commit comments

Comments
 (0)