Skip to content

Commit

Permalink
Adapting tests to recent changes avoiding warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
Wrzlprmft committed Sep 4, 2020
1 parent 23ade43 commit dd5b6d6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions tests/test_jitcdde.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ def setUp(self):
if self.DDE.f_sym():
self.DDE.check()
self.generator()
self.DDE.initial_discontinuities_handled = True

def assert_consistency_with_previous(self, value):
if self.y_10 is None:
Expand Down
4 changes: 2 additions & 2 deletions tests/test_lyaps.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ def test_integrate_blindly(self):
self.DDE.integrate_blindly(100.0, 0.1)

def test_step_on_discontinuities(self):
self.DDE.step_on_discontinuities(max_step=0.1)
self.DDE.step_on_discontinuities()

## Takes forever:
# def test_Python_core(self):
# self.DDE.generate_lambdas()
# self.DDE.generate_lambdas(simplify=False)
# self.DDE.step_on_discontinuities(max_step=0.1)

def tearDown(self):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_sympy_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def symengine_y(index,time=symengine_t):
DDE = jitcdde.jitcdde( [cos(t)*y(0)-y(0,t-1)], verbose=False )
DDE.constant_past([1],0.0)

DDE.step_on_discontinuities(max_step=0.1)
DDE.step_on_discontinuities()
result = DDE.integrate(10)[0]
results.add(result)

Expand Down

0 comments on commit dd5b6d6

Please sign in to comment.