Skip to content

Commit

Permalink
value -> factor
Browse files Browse the repository at this point in the history
  • Loading branch information
Saransh-cpp committed Feb 14, 2024
1 parent 76dd250 commit 5d481e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/boost_histogram/tag.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def __init__(
def __repr__(self) -> str:
repr_str = f"{self.__class__.__name__}"
args: dict[str, int | Sequence[int] | None] = {
"value": self.factor,
"factor": self.factor,
"groups": self.groups,
}
for k, v in args.items():
Expand Down
2 changes: 1 addition & 1 deletion tests/test_histogram_indexing.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ def test_repr():
assert repr(bh.overflow + 1) == "overflow + 1"
assert repr(bh.overflow - 1) == "overflow - 1"

assert repr(bh.rebin(2)) == "Rebinner(value=2)"
assert repr(bh.rebin(2)) == "Rebinner(factor=2)"


# Was broken in 0.6.1
Expand Down

0 comments on commit 5d481e3

Please sign in to comment.