Skip to content
This repository has been archived by the owner on May 2, 2022. It is now read-only.

Commit

Permalink
add __repr__() to Combine
Browse files Browse the repository at this point in the history
  • Loading branch information
TaiSakuma committed May 10, 2017
1 parent bf35402 commit 528e76c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions alphatwirl/binning/Combine.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ def __init__(self, low, high, at):
self._high = high
self._at = at

def __repr__(self):
return '{}(low = {!r}, high = {!r}), at = {!r})'.format(
self.__class__.__name__,
self._low, self._high, self._at
)

def __call__(self, val):
if val < self._at:
return self._low(val)
Expand Down

0 comments on commit 528e76c

Please sign in to comment.