Skip to content

Commit

Permalink
Remove extra dataframe_accessor's where a series_accessor already exists
Browse files Browse the repository at this point in the history
Signed-off-by: Benjamin Maier <[email protected]>
  • Loading branch information
maierbn committed Dec 13, 2024
1 parent 534c27c commit 5ef1747
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion src/pylife/materiallaws/woehlercurve.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@


@pd.api.extensions.register_series_accessor('woehler')
@pd.api.extensions.register_dataframe_accessor('woehler')
class WoehlerCurve(PylifeSignal):
"""A PylifeSignal accessor for Wöhler Curve data.
Expand Down
1 change: 0 additions & 1 deletion src/pylife/strength/fatigue.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@


@pd.api.extensions.register_series_accessor('fatigue')
@pd.api.extensions.register_dataframe_accessor('fatigue')
class Fatigue(WoehlerCurve):
"""Extension for ``WoehlerCurve`` accessor class for fatigue calculations.
Expand Down
4 changes: 0 additions & 4 deletions src/pylife/strength/fkm_load_distribution.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@
import pandas as pd
from pylife import PylifeSignal

@pd.api.extensions.register_dataframe_accessor("fkm_load_sequence")
@pd.api.extensions.register_series_accessor("fkm_load_sequence")
class FKMLoadSequence(PylifeSignal):
"""Base class used by the safety scaling method. It is used to compute the beta parameter
Expand Down Expand Up @@ -253,7 +252,6 @@ def _get_beta(self, input_parameters):
raise ValueError(f"P_A={input_parameters.P_A} has to be one of "+"{"+", ".join(P_A_list)+"}.")


@pd.api.extensions.register_dataframe_accessor("fkm_safety_normal_from_stddev")
@pd.api.extensions.register_series_accessor("fkm_safety_normal_from_stddev")
class FKMLoadDistributionNormal(FKMLoadSequence):
r"""Series accessor to get a scaled up load series.
Expand Down Expand Up @@ -355,7 +353,6 @@ def scaled_load_sequence(self, input_parameters):
return self.scaled_by_constant(gamma_L)


@pd.api.extensions.register_dataframe_accessor("fkm_safety_lognormal_from_stddev")
@pd.api.extensions.register_series_accessor("fkm_safety_lognormal_from_stddev")
class FKMLoadDistributionLognormal(FKMLoadSequence):
r"""Series accessor to get a scaled up load series.
Expand Down Expand Up @@ -447,7 +444,6 @@ def scaled_load_sequence(self, input_parameters):
return self.scaled_by_constant(gamma_L)


@pd.api.extensions.register_dataframe_accessor("fkm_safety_blanket")
@pd.api.extensions.register_series_accessor("fkm_safety_blanket")
class FKMLoadDistributionBlanket(FKMLoadSequence):
r"""Series accessor to get a scaled up load series, i.e., a list of load values with included load safety,
Expand Down
2 changes: 0 additions & 2 deletions src/pylife/strength/woehler_fkm_nonlinear.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@


@pd.api.extensions.register_series_accessor('woehler_P_RAM')
@pd.api.extensions.register_dataframe_accessor('woehler_P_RAM')
class WoehlerCurvePRAM(PylifeSignal):
"""This class represents the type of (component) Wöhler curve that is used
in the FKM nonlinear fatigue assessment with damage parameter P_RAM.
Expand Down Expand Up @@ -172,7 +171,6 @@ def fatigue_life_limit(self):


@pd.api.extensions.register_series_accessor('woehler_P_RAJ')
@pd.api.extensions.register_dataframe_accessor('woehler_P_RAJ')
class WoehlerCurvePRAJ(PylifeSignal):
"""This class represents the type of (component) Wöhler curve that is used in the
FKM nonlinear fatigue assessment with damage parameter P_RAJ.
Expand Down

0 comments on commit 5ef1747

Please sign in to comment.