Skip to content

Commit

Permalink
MAINT: integrate._qmc_quad: mark as private with preceding underscore
Browse files Browse the repository at this point in the history
  • Loading branch information
mdhaber authored and tylerjereddy committed Jan 3, 2023
1 parent 3e0ae1a commit ac2f45f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions scipy/integrate/_quadrature.py
Original file line number Diff line number Diff line change
Expand Up @@ -1049,11 +1049,11 @@ def newton_cotes(rn, equal=0):
def _qmc_quad_iv(func, a, b, n_points, n_estimates, qrng, log):

# lazy import to avoid issues with partially-initialized submodule
if not hasattr(qmc_quad, 'qmc'):
if not hasattr(_qmc_quad, 'qmc'):
from scipy import stats
qmc_quad.stats = stats
_qmc_quad.stats = stats
else:
stats = qmc_quad.stats
stats = _qmc_quad.stats

if not callable(func):
message = "`func` must be callable."
Expand Down Expand Up @@ -1123,8 +1123,8 @@ def vfunc(x):
QMCQuadResult = namedtuple('QMCQuadResult', ['integral', 'standard_error'])


def qmc_quad(func, a, b, *, n_points=1024, n_estimates=8, qrng=None,
log=False, args=None):
def _qmc_quad(func, a, b, *, n_points=1024, n_estimates=8, qrng=None,
log=False, args=None):
"""
Compute an integral in N-dimensions using Quasi-Monte Carlo quadrature.
Expand Down
2 changes: 1 addition & 1 deletion scipy/integrate/tests/test_quadrature.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from scipy.integrate import (quadrature, romberg, romb, newton_cotes,
cumulative_trapezoid, cumtrapz, trapz, trapezoid,
quad, simpson, simps, fixed_quad, AccuracyWarning)
from scipy.integrate._quadrature import qmc_quad
from scipy.integrate._quadrature import _qmc_quad as qmc_quad
from scipy import stats, special as sc


Expand Down

0 comments on commit ac2f45f

Please sign in to comment.