Skip to content

Commit

Permalink
updating docs formats and minor bug in CR and MM overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewReid854 committed Apr 20, 2023
1 parent c593ea5 commit ca9cc8d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@ build:
tools:
python: "3.8"

formats:
- pdf
- epub

python:
install:
- requirements: requirements.txt
- method: pip
path: .
system_packages: true
system_packages: true
8 changes: 8 additions & 0 deletions reliability/Distributions.py
Original file line number Diff line number Diff line change
Expand Up @@ -7882,6 +7882,7 @@ def plot(self, xvals=None, xmin=None, xmax=None):
plt.suptitle(text_title, fontsize=15)

plt.subplot(231)
self.__pdf[self.__pdf > 1e100] = 1e100
plt.plot(self.__xvals, self.__pdf)
restore_axes_limits(
[(0, 1), (0, 1), False],
Expand Down Expand Up @@ -7924,6 +7925,7 @@ def plot(self, xvals=None, xmin=None, xmax=None):
plt.title("Survival Function")

plt.subplot(234)
self.__hf[self.__hf > 1e100] = 1e100
plt.plot(self.__xvals, self.__hf)
restore_axes_limits(
[(0, 1), (0, 1), False],
Expand Down Expand Up @@ -8050,6 +8052,7 @@ def PDF(
else:
textlabel = "Competing risks model"
limits = get_axes_limits()
self.__pdf[self.__pdf > 1e100] = 1e100
plt.plot(self.__xvals, self.__pdf, label=textlabel, **kwargs)
plt.xlabel("x values")
plt.ylabel("Probability density")
Expand Down Expand Up @@ -8304,6 +8307,7 @@ def HF(
else:
textlabel = "Competing risks model"
limits = get_axes_limits()
self.__hf[self.__hf > 1e100] = 1e100
plt.plot(self.__xvals, self.__hf, label=textlabel, **kwargs)
plt.xlabel("x values")
plt.ylabel("Hazard")
Expand Down Expand Up @@ -8869,6 +8873,7 @@ def plot(self, xvals=None, xmin=None, xmax=None):
plt.suptitle(text_title, fontsize=15)

plt.subplot(231)
self.__pdf[self.__pdf > 1e100] = 1e100
plt.plot(self.__xvals, self.__pdf)
restore_axes_limits(
[(0, 1), (0, 1), False],
Expand Down Expand Up @@ -8911,6 +8916,7 @@ def plot(self, xvals=None, xmin=None, xmax=None):
plt.title("Survival Function")

plt.subplot(234)
self.__hf[self.__hf > 1e100] = 1e100
plt.plot(self.__xvals, self.__hf)
restore_axes_limits(
[(0, 1), (0, 1), False],
Expand Down Expand Up @@ -9037,6 +9043,7 @@ def PDF(
textlabel = "Mixture model"

limits = get_axes_limits()
self.__pdf[self.__pdf > 1e100] = 1e100
plt.plot(self.__xvals, self.__pdf, label=textlabel, **kwargs)
plt.xlabel("x values")
plt.ylabel("Probability density")
Expand Down Expand Up @@ -9286,6 +9293,7 @@ def HF(
textlabel = kwargs.pop("label")
else:
textlabel = "Mixture model"
self.__hf[self.__hf > 1e100] = 1e100
plt.plot(self.__xvals, self.__hf, label=textlabel, **kwargs)
plt.xlabel("x values")
plt.ylabel("Hazard")
Expand Down

0 comments on commit ca9cc8d

Please sign in to comment.