Skip to content

Commit

Permalink
Deprecate helpers.py and sn_curve.py
Browse files Browse the repository at this point in the history
Signed-off-by: Johannes Mueller <[email protected]>
  • Loading branch information
johannes-mueller committed Feb 22, 2022
1 parent 45f5cbf commit 53fa73b
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 225 deletions.
5 changes: 3 additions & 2 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
[run]
branch = True
source = pylife
# omit = bad_file.py
omit =
src/pylife/strength/helpers.py
src/pylife/strength/sn_curve.py

[paths]
source =
src/
*/site-packages/

[report]
# Regexes for lines to exclude from consideration
Expand Down
2 changes: 0 additions & 2 deletions docs/reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ Strength
strength/meanstress
strength/failure_probability
strength/miner
strength/sn_curve
strength/helpers

Materiallaws
------------
Expand Down
6 changes: 0 additions & 6 deletions docs/strength/helpers.rst

This file was deleted.

6 changes: 0 additions & 6 deletions docs/strength/sn_curve.rst

This file was deleted.

8 changes: 8 additions & 0 deletions src/pylife/strength/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,16 @@
__author__ = "Cedric Philip Wagner"
__maintainer__ = "Johannes Mueller"

import warnings

import numpy as np

warnings.warn(
FutureWarning(
"The module pylife.strength.helpers is deprecated and no longer under test. "
"We will restore the functionality in another module if needed."
)
)

class StressRelations:
"""Namespace for simple relations of stress / amplitude / R-ratio
Expand Down
6 changes: 6 additions & 0 deletions src/pylife/strength/sn_curve.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@
import pylife.strength.fatigue
import pylife.stress

warnings.warn(
FutureWarning(
"The module pylife.strength.helpers is deprecated and no longer under test. "
"The functionality is now avaliable in the pylife.materiallaws.WoehlerCurve."
)
)

class FiniteLifeBase:
"""Base class for SN curve calculations - either in logarithmic or regular scale"""
Expand Down
115 changes: 0 additions & 115 deletions tests/strength/test_helpers.py

This file was deleted.

2 changes: 0 additions & 2 deletions tests/strength/test_meanstress.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import sys, os, copy
import warnings
import pytest

Expand All @@ -23,7 +22,6 @@
import numpy.testing as testing

import pylife.strength.meanstress as MST
from pylife.strength.sn_curve import FiniteLifeCurve


def goodman_signal_sm():
Expand Down
92 changes: 0 additions & 92 deletions tests/strength/test_sn_curve.py

This file was deleted.

0 comments on commit 53fa73b

Please sign in to comment.