make the key an abstract property

This commit is contained in:
Valentin Boettcher 2022-01-13 14:18:22 +01:00
parent 98c8b02478
commit f87c2dbb9b

View file

@ -95,7 +95,6 @@ class StocProc(abc.ABC):
self.t_max = t_max self.t_max = t_max
self.num_grid_points = num_grid_points self.num_grid_points = num_grid_points
self.t = np.linspace(0, t_max, num_grid_points) self.t = np.linspace(0, t_max, num_grid_points)
self.key = "generic"
self._z = None self._z = None
self._interpolator = None self._interpolator = None
self._interpolator_dot = None self._interpolator_dot = None
@ -114,6 +113,10 @@ class StocProc(abc.ABC):
) )
) )
@abc.abstractproperty
def key(self):
pass
def __call__(self, t=None): def __call__(self, t=None):
r"""Evaluates the stochastic process. r"""Evaluates the stochastic process.