Skip to content

Commit

Permalink
Merge pull request #259 from GeoStat-Framework/custom-generators
Browse files Browse the repository at this point in the history
Generator: add abstract __init__
  • Loading branch information
MuellerSeb authored Aug 16, 2022
2 parents 4362175 + 239c3a5 commit 58cc52b
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions src/gstools/field/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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):
Expand Down

0 comments on commit 58cc52b

Please sign in to comment.