From bc7dc95ee8b59326681d90dcbd869871bb2f89bc Mon Sep 17 00:00:00 2001 From: Scott Marquis Date: Tue, 5 Dec 2023 09:30:10 +0100 Subject: [PATCH] fixed T and sto order in example --- examples/scripts/minimal_example_of_lookup_tables.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/scripts/minimal_example_of_lookup_tables.py b/examples/scripts/minimal_example_of_lookup_tables.py index 324ec10538..1c93e311c0 100644 --- a/examples/scripts/minimal_example_of_lookup_tables.py +++ b/examples/scripts/minimal_example_of_lookup_tables.py @@ -25,8 +25,8 @@ def process_2D(name, data): D_s_n = parameter_values["Negative electrode diffusivity [m2.s-1]"] df = pd.DataFrame( { - "sto": [0, 1, 0, 1, 0, 1], "T": [0, 0, 25, 25, 45, 45], + "sto": [0, 1, 0, 1, 0, 1], "D_s_n": [D_s_n, D_s_n, D_s_n, D_s_n, D_s_n, D_s_n], } ) @@ -36,7 +36,7 @@ def process_2D(name, data): def D_s_n(sto, T): name, (x, y) = D_s_n_data - return pybamm.Interpolant(x, y, [sto, T], name) + return pybamm.Interpolant(x, y, [T, sto], name) parameter_values["Negative electrode diffusivity [m2.s-1]"] = D_s_n