You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
create a SummaryVariable object that saves solution.last_state and uses it to calculate the esoh variables only when they are called (the same way as Solution calculates the variables only when they are called)
allow users to pass in functions that calculate summary variables based on other variables
The text was updated successfully, but these errors were encountered:
If we just keep summary variables as a list then I think defining your own summary variables is hard. Right now the summary variables just calculate the value of the variable at the last time point, and then change in that variable.
We could do something more complicated like pass in functions that take a solution and perform some operation to get a summary variable, but I'm not sure there is a strong use case for this. It can always be done as a post-processing step. If you only want the last value of some quantity then users can add custom variables to the model and then add that to the list of summary variables.
As discussed in #3995
SummaryVariable
object that savessolution.last_state
and uses it to calculate the esoh variables only when they are called (the same way asSolution
calculates the variables only when they are called)The text was updated successfully, but these errors were encountered: