def test_stress_strength_normal():
    stress = Normal_Distribution(mu=50, sigma=5)
    strength = Normal_Distribution(mu=80, sigma=7)
    result = stress_strength_normal(stress=stress,
                                    strength=strength,
                                    print_results=False,
                                    show_distribution_plot=False)
    assert_allclose(result, 0.00024384404803800858, rtol=rtol, atol=atol)
def Probability_of_failure_normdist(
    stress=None,
    strength=None,
    show_distribution_plot=True,
    print_results=True,
    warn=True,
):
    """
    This function is deprecated.
    Please use reliability.Other_functions.stress_strength_normal
    It is the same function just in a different location with a different name.
    """
    warning_str = "DeprecationWarning: reliability.Stress_strength.Probability_of_failure_normdist was moved and renamed to reliability.Other_functions.stress_strength_normal in version 0.5.5. Your function has still been run, however, this module will be fully deprecated in March 2021."
    colorprint(warning_str, text_color="red")
    stress_strength_normal(
        stress=stress,
        strength=strength,
        show_distribution_plot=show_distribution_plot,
        print_results=print_results,
        warn=warn,
    )