liionpack solver 'type' KeyError #214
Replies: 3 comments 1 reply
-
I managed to get it to run on a Windows machine so I have a feeling it is an issue with casadi in a virtual environment on mac. |
Beta Was this translation helpful? Give feedback.
-
Hi @frivollier
Could you also let us know the PyBaMM and liionpack versions you are trying to use? The libraries should work if both of them are on their latest versions -
|
Beta Was this translation helpful? Give feedback.
-
Hi @frivollier I have just released a new verison of liionpack 0.3.5 following PyBaMM's release 23.3. Please let me know if this fixes your issue |
Beta Was this translation helpful? Give feedback.
-
I am looking for help with liionpack https://github.com/pybamm-team/liionpack
I am getting the following type KeyError while running all examples. (this is error from the example git home page readme.md)
Traceback (most recent call last): File "/Users/frivollier/software_local/BESSTools1/liionpack_DT/test.py", line 46, in <module> manager='casadi') File "/Users/frivollier/software_local/BESSTools1/venv/lib/python3.7/site-packages/liionpack/solver_utils.py", line 441, in solve setup_only=False, File "/Users/frivollier/software_local/BESSTools1/venv/lib/python3.7/site-packages/liionpack/solvers.py", line 317, in solve self.protocol = lp.generate_protocol_from_experiment(experiment, flatten=True) File "/Users/frivollier/software_local/BESSTools1/venv/lib/python3.7/site-packages/liionpack/protocols.py", line 30, in generate_protocol_from_experiment typ = op["type"] KeyError: 'type'
running on mac python 3.7
thanks for pointing me in the right direction for some help.
Regards,
Fred
Beta Was this translation helpful? Give feedback.
All reactions