Format Expression
Format Expression
Format a PyBaMM expression string using black.
Wraps the expression in a dummy assignment, runs black, then strips the assignment back off so the caller gets just the formatted expression.
Parameters
request : FormatExpressionRequest expression: Raw PyBaMM expression string
Returns
FormatExpressionResponse expression: Black-formatted expression string
Format Expression