Skip to content

Commit

Permalink
cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
douglasdavis committed Apr 14, 2021
1 parent 0c68039 commit 13ac670
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 94 deletions.
3 changes: 0 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,6 @@ def get_extensions():


extras_require = {
"bh": [
"boost-histogram",
],
"test": [
"pytest",
],
Expand Down
20 changes: 0 additions & 20 deletions src/pygram11/_bh.py

This file was deleted.

25 changes: 0 additions & 25 deletions src/pygram11/_hist.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ def fix1d(
density: bool = False,
flow: bool = False,
cons_var: bool = False,
bh: Optional[Any] = None,
) -> Tuple[np.ndarray, Union[np.ndarray, None]]:
r"""Histogram data with fixed (uniform) bin widths.
Expand All @@ -164,9 +163,6 @@ def fix1d(
cons_var : bool
If ``True``, conserve the variance rather than return the
standard error (square root of the variance).
bh : boost_histogram.Histogram, optional
Pass a boost_histogram.Histogram object to store the resulting
counts and variances.
Raises
------
Expand Down Expand Up @@ -208,10 +204,6 @@ def fix1d(
if density:
width = (xmax - xmin) / bins
result = _densify_fixed_counts(result, width)
if bh is not None:
from ._bh import store_results_in_bh

store_results_in_bh(bh, result)
return result, None

if np.shape(x) != np.shape(weights):
Expand All @@ -223,11 +215,6 @@ def fix1d(
result = _densify_fixed_weighted_counts(result, width)
counts, variances = result

if bh is not None:
from ._bh import store_results_in_bh

store_results_in_bh(bh, counts, variances)

if cons_var:
return counts, variances
return counts, np.sqrt(variances)
Expand Down Expand Up @@ -497,7 +484,6 @@ def fix2d(
weights: Optional[np.ndarray] = None,
flow: bool = False,
cons_var: bool = False,
bh: Optional[Any] = None,
) -> Tuple[np.ndarray, Optional[np.ndarray]]:
r"""Histogram two dimensional data with fixed (uniform) binning.
Expand All @@ -524,9 +510,6 @@ def fix2d(
cons_var : bool
If ``True``, conserve the variance rather than return the
standard error (square root of the variance).
bh : boost_histogram.Histogram, optional
Pass a boost_histogram.Histogram object to store the resulting
counts and variances.
Raises
------
Expand Down Expand Up @@ -578,20 +561,12 @@ def fix2d(

if weights is None:
result = _f2d(x, y, int(nx), xmin, xmax, int(ny), ymin, ymax, flow)
if bh is not None:
from ._bh import store_results_in_bh

store_results_in_bh(bh, result)
return result, None

counts, variances = _f2dw(
x, y, weights, int(nx), xmin, xmax, int(ny), ymin, ymax, flow
)

if bh is not None:
from ._bh import store_results_in_bh

store_results_in_bh(bh, counts, variances)
if cons_var:
return counts, variances
return counts, np.sqrt(variances)
Expand Down
46 changes: 0 additions & 46 deletions tests/test_bh.py

This file was deleted.

0 comments on commit 13ac670

Please sign in to comment.