Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 3392 improve documentation #3474

1 change: 1 addition & 0 deletions pybamm/models/base_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,7 @@ def input_parameters(self):
return self._input_parameters

def print_parameter_info(self):
"""Returns parameters used in the model"""
self._parameter_info = ""
parameters = self._find_symbols(pybamm.Parameter)
for param in parameters:
Expand Down
5 changes: 5 additions & 0 deletions pybamm/step/steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ def current(value, **kwargs):
----------
value : float
The current value in A.
Value can be a number, a 2-tuple (for cccv_ode), or a 2-column array (for drive cycles)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
The current value in A.
Value can be a number, a 2-tuple (for cccv_ode), or a 2-column array (for drive cycles)
The current value in A. It can be a number or a 2-column array (for drive cycles)

The cccv_ode is only possible at the _Step level so does not need to be included here.

This applies to all below.

**kwargs
Any other keyword arguments are passed to the :class:`pybamm.step._Step`
class.
Expand All @@ -142,6 +143,7 @@ def c_rate(value, **kwargs):
----------
value : float
The C-rate value.
Value can be a number, a 2-tuple (for cccv_ode), or a 2-column array (for drive cycles)
**kwargs
Any other keyword arguments are passed to the :class:`pybamm.step._Step`
class.
Expand All @@ -163,6 +165,7 @@ def voltage(value, **kwargs):
----------
value : float
The voltage value in V.
Value can be a number, a 2-tuple (for cccv_ode), or a 2-column array (for drive cycles)
**kwargs
Any other keyword arguments are passed to the :class:`pybamm.step._Step`
class.
Expand All @@ -184,6 +187,7 @@ def power(value, **kwargs):
----------
value : float
The power value in W.
Value can be a number, a 2-tuple (for cccv_ode), or a 2-column array (for drive cycles)
**kwargs
Any other keyword arguments are passed to the :class:`pybamm.step._Step`
class.
Expand All @@ -205,6 +209,7 @@ def resistance(value, **kwargs):
----------
value : float
The resistance value in Ohm.
Value can be a number, a 2-tuple (for cccv_ode), or a 2-column array (for drive cycles)
**kwargs
Any other keyword arguments are passed to the :class:`pybamm.step._Step`
class.
Expand Down
Loading