Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update tests #2

Merged
merged 5 commits into from
Sep 20, 2022
Merged

Update tests #2

merged 5 commits into from
Sep 20, 2022

Conversation

pradal
Copy link
Contributor

@pradal pradal commented Sep 20, 2022

Except for inoculum problem with global variable?
src code run ok

@pradal
Copy link
Contributor Author

pradal commented Sep 20, 2022

It remains one error

def test_inoculum_scenario_inoculuminitial():
Lx = 3
Ly = 3
ng_ext0_abs = 20000
inoc_init_abs = 500000
inoc_init, ng_ext0 = inoculum(scenario_ino="initial_inoculum", Lx=Lx, Ly=Ly, frac_inf=1,
inoc_init_abs=inoc_init_abs, ng_ext0_abs=ng_ext0_abs)
desired_inoc_init =np.ones((Lx, Ly)) * 20000000

  np.testing.assert_allclose(desired_inoc_init, inoc_init)

E AssertionError:
E Not equal to tolerance rtol=1e-07, atol=0
E
E Mismatched elements: 9 / 9 (100%)
E Max absolute difference: 19500000.
E Max relative difference: 39.
E x: array([[20000000., 20000000., 20000000.],
E [20000000., 20000000., 20000000.],
E [20000000., 20000000., 20000000.]])
E y: array([[500000., 500000., 500000.],
E [500000., 500000., 500000.],
E [500000., 500000., 500000.]])

test_inoculum.py:28: AssertionError

@pradal pradal merged commit 4144a2e into main Sep 20, 2022
@pradal pradal deleted the test_new_branch_w_C branch September 20, 2022 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant