Skip to content

Commit

Permalink
doc test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
medha-14 committed Oct 4, 2024
1 parent 744554d commit e3184e7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/pybamm/models/base_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,12 @@ class BaseModel:
Specifies the format to convert the expression trees representing the RHS,
algebraic equations, Jacobian, and events.
Options are:
- None: retain PyBaMM expression tree structure.
- "python": convert to Python code for evaluating `evaluate(t, y)` on expressions.
- "casadi": convert to CasADi expression tree for Jacobian calculation.
- "jax": convert to JAX expression tree.
Default is "casadi".
is_discretised: bool
Indicates whether the model has been discretized (default is False).
Expand Down Expand Up @@ -259,9 +261,6 @@ def variable_names(self):

@property
def variables_and_events(self):
"""
Returns variables and events in a single dictionary
"""
try:
return self._variables_and_events
except AttributeError:
Expand Down

0 comments on commit e3184e7

Please sign in to comment.