deflex.Cycles.get_suspicious_time_steps

Cycles.get_suspicious_time_steps()[source]

Detect the time steps of a cycle in which all flows are non-zero.

Returns:One table for each cycle with all suspicious rows
Return type:list

Examples

>>> import deflex as dflx
>>> fn = dflx.fetch_test_files("de03_suspicious_modelling.dflx")
>>> my_results = dflx.restore_results(fn)
>>> c = Cycles(my_results)
>>> len(list(c.simple_cycles))
7
>>> len(c.used_cycles)
1
>>> len(c.suspicious_cycles)
1
>>> c.get_suspicious_time_steps()[0].iloc[5]
0_from_storage_electricity_battery_DE01    317596.81
1_from_electricity_all_all_DE01            289581.37
Name: 2022-01-01 05:00:00, dtype: float64