pybamm-team / PyBaMM

Fast and flexible physics-based battery models in Python
https://www.pybamm.org/
BSD 3-Clause "New" or "Revised" License
1.08k stars 533 forks source link

[Bug]: pybamm.step.current(1, duration="1 hour", termination="2.5 V"), #4233

Closed ADSDAW closed 3 months ago

ADSDAW commented 3 months ago

PyBaMM Version

22.9

Python Version

3.7

Describe the bug

The step attribute is gone in pybamm.step.current()

Steps to Reproduce

pybamm.step.current(1, duration="1 hour", termination="2.5 V") Error:AttributeError: module 'pybamm' has no attribute 'step'

Relevant log output

No response

kratman commented 3 months ago

@ADSDAW The version of pybamm you are using is quite old and we do not support less than python 3.9 anymore. Can you try using a newer python version (I recommend python 3.11) and the pybamm version 24.1?

ADSDAW commented 3 months ago

Thank u vary much

kratman commented 3 months ago

I will close this issue for now since I suspect it was mainly caused by the old python version. As a side note, if you try to install pybamm with older versions of python, it defaults to old versions during the package solving step