-
Notifications
You must be signed in to change notification settings - Fork 3
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
The parameters of a class should have the same name as the arguments passed to the __init__. tpcp should show a descriptive error when this happens. However, this is not the case.
Example:
class Preprocessing(Algorithm):
_action_methods = ["clean"]
preprocessing_method: Parameter[str]
icg_clean_: pd.DataFrame
def __init__(self, method: str = "butterworth"):
if method not in ["butterworth", "elliptic", "savgol"]:
raise ValueError("Filter type can only be 'butterworth', 'elliptic', or 'savgol'")
self.preprocessing_method = method
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working