Skip to content

Commit

Permalink
Added global collection to finite_difference
Browse files Browse the repository at this point in the history
Adjust auto_variables import
  • Loading branch information
antonykamp committed Jun 19, 2020
1 parent 51b4d64 commit 2741406
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tests/test_finite_difference.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
import symfit as sf
import numpy as np
import pytest
from tests.auto_variables import *


def setup_method():
np.random.seed(0)


x, y, z = sf.variables('x, y, z')
a, b, c = sf.parameters('a, b, c')


@pytest.mark.parametrize('x_data', [np.arange(10), 3])
@pytest.mark.parametrize('init_model,init_par',
[
Expand Down Expand Up @@ -47,8 +44,7 @@ def test_multi_indep(x_data, w_data):
Tests the case with multiple components, multiple parameters and
multiple independent variables
'''
w, x, y, z = sf.variables('w, x, y, z')
a, b, c = sf.parameters('a, b, c')
w = sf.Variable('w')
model = sf.Model({y: 3 * a * x**2 + b * x * w - c,
z: sf.exp(a*x - b) + c*w})

Expand Down

0 comments on commit 2741406

Please sign in to comment.