Skip to content

Commit a92158a

Browse files
Move statistics function exports from dpnp_iface.py to __init__.py
1 parent fbb7b82 commit a92158a

File tree

3 files changed

+18
-20
lines changed

3 files changed

+18
-20
lines changed

dpnp/__init__.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,8 @@
376376
nansum,
377377
)
378378

379+
from .dpnp_iface_statistics import convolve
380+
379381
# -----------------------------------------------------------------------------
380382
# Sorting, searching, and counting
381383
# -----------------------------------------------------------------------------
@@ -419,6 +421,22 @@
419421
nanvar,
420422
)
421423

424+
from .dpnp_iface_statistics import (
425+
amax,
426+
amin,
427+
average,
428+
corrcoef,
429+
correlate,
430+
cov,
431+
max,
432+
mean,
433+
median,
434+
min,
435+
ptp,
436+
std,
437+
var,
438+
)
439+
422440

423441
__all__ = _iface__all__
424442
__all__ += _ifaceutils__all__

dpnp/dpnp_iface.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,6 @@
7676
"synchronize_array_data",
7777
]
7878

79-
from dpnp.dpnp_iface_statistics import *
80-
from dpnp.dpnp_iface_statistics import __all__ as __all__statistics
8179
from dpnp.dpnp_iface_trigonometric import *
8280
from dpnp.dpnp_iface_trigonometric import __all__ as __all__trigonometric
8381
from dpnp.dpnp_iface_window import *
@@ -90,7 +88,6 @@
9088
use_origin_backend,
9189
)
9290

93-
__all__ += __all__statistics
9491
__all__ += __all__trigonometric
9592
__all__ += __all__window
9693

dpnp/dpnp_iface_statistics.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -60,23 +60,6 @@
6060
from .dpnp_utils.dpnp_utils_reduction import dpnp_wrap_reduction_call
6161
from .dpnp_utils.dpnp_utils_statistics import dpnp_cov, dpnp_median
6262

63-
__all__ = [
64-
"amax",
65-
"amin",
66-
"average",
67-
"convolve",
68-
"corrcoef",
69-
"correlate",
70-
"cov",
71-
"max",
72-
"mean",
73-
"median",
74-
"min",
75-
"ptp",
76-
"std",
77-
"var",
78-
]
79-
8063

8164
def _count_reduce_items(arr, axis, where=True):
8265
"""

0 commit comments

Comments
 (0)