Skip to content

Commit

Permalink
fixed T and sto order in example
Browse files Browse the repository at this point in the history
  • Loading branch information
Scottmar93 committed Dec 5, 2023
1 parent 684bc96 commit bc7dc95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/scripts/minimal_example_of_lookup_tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -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],
}
)
Expand All @@ -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
Expand Down

0 comments on commit bc7dc95

Please sign in to comment.