mooflow.funcs.days_violated¶
-
mooflow.funcs.
days_violated
(x, restrictions, setup_mf, start_with=None)¶ calculates the longest consecuate period with a violation of a restriction
- Parameters
- xnumpy array
time series with the groundwater levels
- restrictionsGW_level_pattern
holds the grounwater level restrictions
- setup_mfOmo_setup
the optimization setup
- start_withlist
no is done evaluation before [year, doy]
- Returns
- intnumber of timesteps in the longest running violation period