8000 MAINT: integrate._qmc_quad: mark as private with preceding underscore · scipy/scipy@ac2f45f · GitHub
[go: up one dir, main page]

Skip to content

Commit ac2f45f

Browse files
mdhabertylerjereddy
authored andcommitted
MAINT: integrate._qmc_quad: mark as private with preceding underscore
1 parent 3e0ae1a commit ac2f45f

File tree

2 files changed

+6
-6
lines changed
Expand file tree

2 files changed

+6
-6
lines changed

scipy/integrate/_quadrature.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1049,11 +1049,11 @@ def newton_cotes(rn, equal=0):
10491049
def _qmc_quad_iv(func, a, b, n_points, n_estimates, qrng, log):
10501050

10511051
# lazy import to avoid issues with partially-initialized submodule
1052-
if not hasattr(qmc_quad, 'qmc'):
1052+
if not hasattr(_qmc_quad, 'qmc'):
10531053
from scipy import stats
1054-
qmc_quad.stats = stats
1054+
_qmc_quad.stats = stats
10551055
else:
1056-
stats = qmc_quad.stats
1056+
stats = _qmc_quad.stats
10571057

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

11251125

1126-
def qmc_quad(func, a, b, *, n_points=1024, n_estimates=8, qrng=None,
1127-
log=False, args=None):
1126+
def _qmc_quad(func, a, b, *, n_points=1024, n_estimates=8, qrng=None,
1127+
log=False, args=None):
11281128
"""
11291129
Compute an integral in N-dimensions using Quasi-Monte Carlo quadrature.
11301130

scipy/integrate/tests/test_quadrature.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from scipy.integrate import (quadrature, romberg, romb, newton_cotes,
88
cumulative_trapezoid, cumtrapz, trapz, trapezoid,
99
quad, simpson, simps, fixed_quad, AccuracyWarning)
10-
from scipy.integrate._quadrature import qmc_quad
10+
from scipy.integrate._quadrature import _qmc_quad as qmc_quad
1111
from scipy import stats, special as sc
1212

1313

0 commit comments

Comments
 (0)
0