mirror of
https://github.com/vale981/stocproc
synced 2025-03-05 17:51:42 -05:00
bugfix: implement __bfkey__
This commit is contained in:
parent
2c806e3bdb
commit
88b0f979a5
2 changed files with 4 additions and 4 deletions
|
@ -1,7 +1,7 @@
|
||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
description = "Generate continuous time stationary stochastic processes from a given auto correlation function."
|
description = "Generate continuous time stationary stochastic processes from a given auto correlation function."
|
||||||
name = "stocproc"
|
name = "stocproc"
|
||||||
version = "1.0.2"
|
version = "1.0.3"
|
||||||
authors = ["Richard Hartmann <richard.hartmann@tu-dresden.de>"]
|
authors = ["Richard Hartmann <richard.hartmann@tu-dresden.de>"]
|
||||||
license = "BSD (3 clause)"
|
license = "BSD (3 clause)"
|
||||||
classifiers = [
|
classifiers = [
|
||||||
|
|
|
@ -114,6 +114,9 @@ class StocProc(abc.ABC):
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
def __bfkey__(self):
|
||||||
|
return self.key
|
||||||
|
|
||||||
def __call__(self, t=None):
|
def __call__(self, t=None):
|
||||||
r"""Evaluates the stochastic process.
|
r"""Evaluates the stochastic process.
|
||||||
|
|
||||||
|
@ -367,9 +370,6 @@ class StocProc_KLE(StocProc):
|
||||||
# """
|
# """
|
||||||
# return self.key
|
# return self.key
|
||||||
|
|
||||||
def __bfkey__(self):
|
|
||||||
return self.key
|
|
||||||
|
|
||||||
def __getstate__(self):
|
def __getstate__(self):
|
||||||
return (
|
return (
|
||||||
self.sqrt_lambda_ui_fine,
|
self.sqrt_lambda_ui_fine,
|
||||||
|
|
Loading…
Add table
Reference in a new issue