Having a 'using' statement inside the expressions returned by sim.built_model.generate_julia_diffeq and pybamm.get_julia_function
cause an exception. These can be removed but then of course the using statements have to be included in the module. At the moment there's a hack around it by removing the 'using' bits e.g.
Having a 'using' statement inside the expressions returned by
sim.built_model.generate_julia_diffeq
andpybamm.get_julia_function
cause an exception. These can be removed but then of course the using statements have to be included in the module. At the moment there's a hack around it by removing the 'using' bits e.g.var_func! = runtime_eval(Meta.parse(replace(var_str,r"using .+"=>"")))