Skip to content

Commit

Permalink
Increase mplhep version
Browse files Browse the repository at this point in the history
  • Loading branch information
APN-Pucky committed Nov 16, 2024
1 parent 17a1219 commit 33e6c00
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ classifiers = [
]
dependencies = [
"numpy",
"mplhep>=0.3.35"
"mplhep>=0.3.55"
]
[project.optional-dependencies]
lint = [
Expand Down
8 changes: 7 additions & 1 deletion src/babyyoda/histo1d.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,12 @@ def rebinBy(self, *args: Any, **kwargs: Any) -> None:
def rebinTo(self, *args: Any, **kwargs: Any) -> None:
self.rebinXTo(*args, **kwargs)

def dVols(self) -> list[float]:
ret = []
for ix in range(len(self.xMins())):
ret.append(self.xMaxs()[ix] - self.xMins()[ix])
return ret

########################################################
# Generic UHI code
########################################################
Expand All @@ -217,7 +223,7 @@ def axes(self) -> list[list[tuple[float, float]]]:

@property
def kind(self) -> str:
# TODO reeavaluate this
# TODO reevaluate this
return "COUNT"

def counts(self) -> np.ndarray:
Expand Down

0 comments on commit 33e6c00

Please sign in to comment.