From ea137b77f0d9ebffbb1435c60ef477dd5c346d94 Mon Sep 17 00:00:00 2001 From: sjvenditto Date: Thu, 21 Nov 2024 15:26:56 -0500 Subject: [PATCH] remove decorator --- pynapple/core/interval_set.py | 2 +- pynapple/core/metadata_class.py | 10 ---------- pynapple/core/time_series.py | 2 +- pynapple/core/ts_group.py | 2 +- 4 files changed, 3 insertions(+), 13 deletions(-) diff --git a/pynapple/core/interval_set.py b/pynapple/core/interval_set.py index 6aeef4be..82db0944 100644 --- a/pynapple/core/interval_set.py +++ b/pynapple/core/interval_set.py @@ -19,7 +19,7 @@ jitunion, ) from .config import nap_config -from .metadata_class import _MetadataMixin, add_meta_docstring +from .metadata_class import _MetadataMixin from .time_index import TsIndex from .utils import ( _convert_iter_to_str, diff --git a/pynapple/core/metadata_class.py b/pynapple/core/metadata_class.py index 5739813a..a07fe9a8 100644 --- a/pynapple/core/metadata_class.py +++ b/pynapple/core/metadata_class.py @@ -6,16 +6,6 @@ import pandas as pd -def add_meta_docstring(meta_func, sep="\n"): - meta_doc = getattr(_MetadataMixin, meta_func).__doc__ - - def _decorator(func): - func.__doc__ = sep.join([meta_doc, func.__doc__]) - return func - - return _decorator - - class _MetadataMixin: """ An object containing metadata functionality for TsGroup, IntervalSet, or TsdFrame objects. diff --git a/pynapple/core/time_series.py b/pynapple/core/time_series.py index b0825628..c667e3bc 100644 --- a/pynapple/core/time_series.py +++ b/pynapple/core/time_series.py @@ -29,7 +29,7 @@ from ._core_functions import _bin_average, _convolve, _dropna, _restrict, _threshold from .base_class import _Base from .interval_set import IntervalSet -from .metadata_class import _MetadataMixin, add_meta_docstring +from .metadata_class import _MetadataMixin from .time_index import TsIndex from .utils import ( _concatenate_tsd, diff --git a/pynapple/core/ts_group.py b/pynapple/core/ts_group.py index ae6e5eef..7b1354db 100644 --- a/pynapple/core/ts_group.py +++ b/pynapple/core/ts_group.py @@ -19,7 +19,7 @@ from .base_class import _Base from .config import nap_config from .interval_set import IntervalSet -from .metadata_class import _MetadataMixin, add_meta_docstring +from .metadata_class import _MetadataMixin from .time_index import TsIndex from .time_series import Ts, Tsd, TsdFrame, _BaseTsd, is_array_like from .utils import (