You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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:
The text was updated successfully, but these errors were encountered: