From 239c3a5e3c602e5a55f41a4e69b28126f874b636 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20M=C3=BCller?= Date: Tue, 16 Aug 2022 20:16:59 +0200 Subject: [PATCH] Generator: add abstract __init__ --- src/gstools/field/generator.py | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/src/gstools/field/generator.py b/src/gstools/field/generator.py index 07def21a..bf1984dc 100644 --- a/src/gstools/field/generator.py +++ b/src/gstools/field/generator.py @@ -11,7 +11,7 @@ RandMeth IncomprRandMeth """ -# pylint: disable=C0103, W0222, C0412 +# pylint: disable=C0103, W0222, C0412, W0231 import warnings from abc import ABC, abstractmethod from copy import deepcopy as dcp @@ -35,7 +35,20 @@ class Generator(ABC): - """Abstract generator class.""" + """ + Abstract generator class. + + Parameters + ---------- + model : :any:`CovModel` + Covariance model + **kwargs + Placeholder for keyword-args + """ + + @abstractmethod + def __init__(self, model, **kwargs): + pass @abstractmethod def update(self, model=None, seed=np.nan):