Skip to content

Commit

Permalink
Bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
marvinpfoertner committed Aug 28, 2020
1 parent 4ce2dde commit 9414231
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions tests/test_diffeq/test_odesolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import numpy as np

from probnum.diffeq import logistic, ODESolver, ConstantSteps
from probnum.prob import RandomVariable, Dirac
from probnum.random_variables import Dirac


class MockODESolver(ODESolver):
Expand All @@ -17,7 +17,7 @@ def step(self, start, stop, current):
x = current.mean()
xnew = x + h * self.ivp(start, x)
return (
RandomVariable(Dirac(xnew)),
Dirac(xnew),
np.nan,
) # return nan as error estimate to ensure that it is not used

Expand All @@ -29,7 +29,7 @@ class ODESolverTestCase(unittest.TestCase):
"""

def setUp(self):
y0 = RandomVariable(distribution=Dirac(0.3))
y0 = Dirac(0.3)
ivp = logistic([0, 4], initrv=y0)
self.solver = MockODESolver(ivp)
self.step = 0.2
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import numpy as np

from probnum import random_variables as rvs
from probnum import utils as _utils


class TestDirac(unittest.TestCase):
Expand Down
File renamed without changes.

0 comments on commit 9414231

Please sign in to comment.