Funcs

Functions to comupte fitness functions or indicators

linear_slope(x[, plot_flag, begin])

Get the slope from a linear regression.

days_violated(x, restrictions, setup_mf[, …])

calculates the longest consecuate period with a violation of a restriction

max_len_ones(inarray[, indicator, …])

run length encoding.

sum_heads_fg(dict_heads, fitness_group)

calculates the weighted sum of all the indicators in the head dict for one fitness group.

count_neg_slopes(dict_heads, fitness_group)

count the number of area_gw with negative slopes –> depletion trend

sum_neg_slopes(dict_heads, fitness_group[, …])

sum the negative slopes of selected area_gw, if we have an positive slope, then assign zero –> minimize the depletion trends, but do not recommend positive trends.

pywr_total__no_recorder_noparameters(pywr_model)

comput the deficits, provided rates for total balance runs (no time series, no input data time series written.)