Skip to content

Commit

Permalink
FIX - suppressing warnings
Browse files Browse the repository at this point in the history
Fixes warnings which ge raised due to changes in matplotlib/numpy.
It is recomemmended to use the latest version of numpy or matplotlib
  • Loading branch information
achim1 committed May 28, 2020
1 parent 3a15a5c commit 353d93d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dashi/histfuncs.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def _cumsum_with_overflow(bincontent, overflow, func):
# in a visible bin of another dimension
idx = [slice(1,-1)]*ndim
idx[axis] = slice(0,1)
cum += n.apply_over_axes(func, oflow, axes[:i])[idx]
cum += n.apply_over_axes(func, oflow, axes[:i])[tuple(idx)]

return cum

Expand Down
2 changes: 1 addition & 1 deletion dashi/histogram.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ def __init__(self, ndim, binedges, bincontent=None, squaredweights=None, labels=
assert self._h_squaredweights.shape == tuple(datacubeshape)

# present views of the non overflow bins to the outside
self._h_visiblerange = [slice(1,-1) for i in range(self.ndim)]
self._h_visiblerange = tuple([slice(1,-1) for i in range(self.ndim)])

self._h_newdataavailable = True # internal trigger for the recalculation of dervived values (e.g. errors, stats,..)

Expand Down

0 comments on commit 353d93d

Please sign in to comment.