File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 11
11
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
+ import warnings
15
+
14
16
from collections .abc import Callable
15
17
16
18
import numpy as np
@@ -125,6 +127,14 @@ def find_constrained_prior(
125
127
mass_below_lower=0,
126
128
)
127
129
"""
130
+ warnings .warn (
131
+ "find_constrained_prior is deprecated and will be removed in a future version. "
132
+ "Please use maxent function from PreliZ. "
133
+ "https://preliz.readthedocs.io/en/latest/api_reference.html#preliz.unidimensional.maxent" ,
134
+ FutureWarning ,
135
+ stacklevel = 2 ,
136
+ )
137
+
128
138
assert 0.01 <= mass <= 0.99 , (
129
139
"This function optimizes the mass of the given distribution +/- "
130
140
f"1%, so `mass` has to be between 0.01 and 0.99. You provided { mass } ."
You can’t perform that action at this time.
0 commit comments