Skip to content

Commit 9f67ec8

Browse files
authored
Add PendingDeprecationWarning for map_direct (#682)
1 parent e38aed5 commit 9f67ec8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cubed/core/ops.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
from numbers import Integral, Number
88
from operator import add
99
from typing import TYPE_CHECKING, Any, Sequence, Tuple, Union
10+
from warnings import warn
1011

1112
import ndindex
1213
import numpy as np
@@ -982,6 +983,11 @@ def map_direct(
982983
Specification for the new array. If not specified, the one from the first side input
983984
(`args`) will be used (if any).
984985
"""
986+
warn(
987+
"`map_direct` is pending deprecation, please use `map_selection` instead",
988+
PendingDeprecationWarning,
989+
stacklevel=2,
990+
)
985991

986992
from cubed.array_api.creation_functions import empty_virtual_array
987993

0 commit comments

Comments
 (0)