Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Mar 22, 2024
1 parent fd7b376 commit 9bbcaf4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/mplhep/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import copy
import warnings
import logging
from numbers import Real
from typing import TYPE_CHECKING, Any, Iterable, Sequence

Expand Down Expand Up @@ -293,6 +292,6 @@ def stack(*plottables):
_baseline[_mask] = np.nan
plottables[i].baseline = _baseline
baseline += np.nan_to_num(plottables[i].values, 0)
plottables[i].values = np.nansum([plottables[i].values , _baseline], axis=0)
plottables[i].values = np.nansum([plottables[i].values, _baseline], axis=0)
plottables[i].values[_mask] = np.nan
return plottables

0 comments on commit 9bbcaf4

Please sign in to comment.