The full_sim_1d function when asked to simulate for energies returns a ufunctypeerror for addition in the energy_change_1d function.
I think this is because at some point the names of two variables get mixed up but I cannot find which variables or where this happens (I think it is most likely the grid/strip or idx variable that gets mixed up somehow).
The full_sim_1d function when asked to simulate for energies returns a ufunctypeerror for addition in the energy_change_1d function.
I think this is because at some point the names of two variables get mixed up but I cannot find which variables or where this happens (I think it is most likely the grid/strip or idx variable that gets mixed up somehow).