diff --git a/src/pylife/materiallaws/woehlercurve.py b/src/pylife/materiallaws/woehlercurve.py index 0d3c1cf1..3fe830a9 100644 --- a/src/pylife/materiallaws/woehlercurve.py +++ b/src/pylife/materiallaws/woehlercurve.py @@ -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. diff --git a/src/pylife/strength/fatigue.py b/src/pylife/strength/fatigue.py index 70bc2e67..5cc6bf19 100644 --- a/src/pylife/strength/fatigue.py +++ b/src/pylife/strength/fatigue.py @@ -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. diff --git a/src/pylife/strength/fkm_load_distribution.py b/src/pylife/strength/fkm_load_distribution.py index 2bf60f17..172a7d35 100644 --- a/src/pylife/strength/fkm_load_distribution.py +++ b/src/pylife/strength/fkm_load_distribution.py @@ -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 @@ -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. @@ -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. @@ -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, diff --git a/src/pylife/strength/woehler_fkm_nonlinear.py b/src/pylife/strength/woehler_fkm_nonlinear.py index 64fab37c..1294f0fe 100644 --- a/src/pylife/strength/woehler_fkm_nonlinear.py +++ b/src/pylife/strength/woehler_fkm_nonlinear.py @@ -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. @@ -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.