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
Test failures on Python 3.5 #191
Comments
This seems to be related to the order of items in a dictionary. From Python 3.6 onward, the order appears to be the order of insertion, but this is not guaranteed before. |
There's still one test failure:
I don't understand what's going on here... |
Aah - there's a dictionary of initial conditions model.initial_conditions = {
c: pybamm.Scalar(2),
T: pybamm.Scalar(5),
S: pybamm.Scalar(8),
} so the concatenation isn't guaranteed to be in the order |
There's more: c0, T0, S0 = np.split(
y0, np.cumsum([combined_submesh.npts, mesh["negative electrode"].npts])
) assumes that This is going to be difficult to get around in general. |
Is the issue just fixing the tests in
but that might make the test redundant. I don't think there's any reason why the Stupid idea: would something like |
note, looks like numpy v 1.16 is required to install scikits.odes? |
…o start getting notebooks tested
Describe the bug
Some tests are failing on Python 3.5 (but not 3.6 or 3.7). Examples are in this build:
https://travis-ci.org/tinosulzer/PyBaMM/jobs/503052350
To Reproduce
Steps to reproduce the behaviour:
python3.5 tests/test_discretisations/test_discretisation.py
The text was updated successfully, but these errors were encountered: