mirror of
https://github.com/vale981/stocproc
synced 2025-03-04 17:21:42 -05:00
make the key an abstract property
This commit is contained in:
parent
98c8b02478
commit
f87c2dbb9b
1 changed files with 4 additions and 1 deletions
|
@ -95,7 +95,6 @@ class StocProc(abc.ABC):
|
|||
self.t_max = t_max
|
||||
self.num_grid_points = num_grid_points
|
||||
self.t = np.linspace(0, t_max, num_grid_points)
|
||||
self.key = "generic"
|
||||
self._z = None
|
||||
self._interpolator = None
|
||||
self._interpolator_dot = None
|
||||
|
@ -114,6 +113,10 @@ class StocProc(abc.ABC):
|
|||
)
|
||||
)
|
||||
|
||||
@abc.abstractproperty
|
||||
def key(self):
|
||||
pass
|
||||
|
||||
def __call__(self, t=None):
|
||||
r"""Evaluates the stochastic process.
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue