Skip to content

Commit

Permalink
bugfix for 0.8.9
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewReid854 committed Apr 23, 2023
1 parent b6402cd commit d3e2100
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_and_test_on_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8','3.9','3.10',3.11]
python-version: ['3.8','3.9','3.10','3.11']

steps:
- uses: actions/checkout@v2
Expand Down
3 changes: 2 additions & 1 deletion docs/Changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ This is a bugfix release.

**Bug Fixes**

- TBA. Currently being fixed.
- There was a bug in Competing Risks and Mixture Models which occurred when the PDF or HF had an asymptote, resulting in an error from matplotlib. Values that are almost inf have been capped to 1e100 to prevent overflow in matplotlib.
- A change to the python core across mutliple versions resulted in key value pairs from iterators returning the key as a tuple rather than an int. This only affected ALT Fitters and caused all of them to fail. The int key is now extracted from the key tuple to resolve this bug.

**Other**

Expand Down
4 changes: 4 additions & 0 deletions reliability/Utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2178,6 +2178,7 @@ def __init__(
failure_groups = []
unique_failure_stresses = []
for key, items in failure_df_ungrouped.groupby(["failure_stress_1"]):
key = key[0]
values = list(items.iloc[:, 0].values)
failure_groups.append(values)
unique_failure_stresses.append(key)
Expand Down Expand Up @@ -2222,6 +2223,7 @@ def __init__(
for key, items in right_censored_df_ungrouped.groupby(
["right_censored_stress_1"]
):
key = key[0]
values = list(items.iloc[:, 0].values)
right_censored_groups.append(values)
unique_right_censored_stresses.append(key)
Expand Down Expand Up @@ -2259,6 +2261,7 @@ def __init__(
failure_groups = []
unique_failure_stresses_str = []
for key, items in failure_df_ungrouped.groupby(["failure_stress_pairs"]):
key = key[0]
values = list(items.iloc[:, 0].values)
failure_groups.append(values)
unique_failure_stresses_str.append(key)
Expand Down Expand Up @@ -2318,6 +2321,7 @@ def __init__(
for key, items in right_censored_df_ungrouped.groupby(
["right_censored_stress_pairs"]
):
key = key[0]
values = list(items.iloc[:, 0].values)
right_censored_groups.append(values)
unique_right_censored_stresses_str.append(key)
Expand Down

0 comments on commit d3e2100

Please sign in to comment.