Skip to content

Commit

Permalink
fixing docs and tests for v0.8.7
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewReid854 committed Jan 28, 2023
1 parent 8c8fbc6 commit 433a5ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/Changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ This is primarily a bugfix release, with some minor API changes and new features

**New features**

- Reliability_testing.likelihood_plot is a new function to generate a likelihood plot. See the `documentation <https://reliability.readthedocs.io/en/latest/likelihood%20plot.html>`_ for more detail.
- Reliability_testing.likelihood_plot is a new function to generate a likelihood plot. See the `documentation <https://reliability.readthedocs.io/en/latest/Likelihood%20plot.html>`_ for more detail.

**API Changes**

- Utils.round_to_decimals has been replaced by Utils.round_and_string. This function always returns a string and the rounding rules applied are better than before as they apply scientific notation for very large and very small numbers. This was an issue in plot titles and plot text where very large numbers weren't being displayed in scientific notation.
- Within Fitters and Distributions that have been created by Fitters, the confidence intervals can be turned off using 'none'. Previously this was None which caused some issues with confidence interval inheritance between Fitters and Distributions and an inability to turn them off when called from Distributions.
- Within Fitters and Distributions that have been created by Fitters, the confidence intervals can be turned off using CI_type='none'. Previously this was CI_type=None which caused some issues with confidence interval inheritance between Fitters and Distributions and an inability to turn them off when called from Distributions.
- Utils.life_stress_plot will swap the x and y axes if ax='swap'. This is useful for making a stress-life plot which is similar to an SN_diagram.
- All of the ALT_Fitters will now accept show_life_stress_plot='swap' to return a stress-life plot by swapping the axes of the standard life-stress plot.

Expand Down
2 changes: 1 addition & 1 deletion tests/test_ALT_fitters.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ def test_Fit_Everything_ALT_single_stress():
assert_allclose(model.Lognormal_Power_BIC, 3751.620631081785, rtol=rtol, atol=atol)
assert_allclose(model.Lognormal_Power_loglik, -1867.2546418289082, rtol=rtol, atol=atol)

assert_allclose(model.Normal_Power_a, 1.1875960546823156e+16, rtol=rtol_big, atol=atol) # larger due to variation in python versions
assert_allclose(model.Normal_Power_a, 1.1875960546823156e+16, rtol=rtol_extreme, atol=atol) # much larger due to variation in python versions
assert_allclose(model.Normal_Power_n, -4.968632318615027, rtol=rtol_big, atol=atol) # larger due to variation in python versions
assert_allclose(model.Normal_Power_sigma, 751.4081379265706, rtol=rtol, atol=atol)
assert_allclose(model.Normal_Power_AICc, 3905.4226589659943, rtol=rtol, atol=atol)
Expand Down

0 comments on commit 433a5ac

Please sign in to comment.