Package that provides functionality to run and process, plot and report TRNSYS simulations
GNU General Public License v3.0
11
stars
8
forks
source link
calcCumSumHourly only works if more than one variable is calculated #187
Open
danielcarbonell opened 4 months ago
The function below only works if baseVariables is a vector. If it is a name baseVariable takes the first character of the string
def updateCumSumVariables(self, baseVariables: tp.Sequence[str], df: pd.DataFrame) -> None: for baseVariable in baseVariables: cumSumVariableName = "cumsum" + baseVariable df[cumSumVariableName] = df[baseVariable].cumsum() self.cumSumEnd[cumSumVariableName + "_End"] = df[cumSumVariableName][-1]