Skip to content

Utilities

Helper decorators and functions used internally by the package.


Decorators

Decorators

Decorators for automatic property recalculation.

Attributes

calculate_electrochemical_properties module-attribute

calculate_electrochemical_properties = recalculate('electrochemical_properties')

Decorator that triggers _calculate_electrochemical_properties after the decorated setter runs. Apply to setters that change electrochemical state (e.g. voltage cutoff, capacity scaling).

calculate_weld_tab_properties module-attribute

calculate_weld_tab_properties = recalculate('weld_tab_properties')

Decorator that triggers _calculate_weld_tab_properties after the decorated setter runs.