diff --git a/src/antares/tsgen/ts_generator.py b/src/antares/tsgen/ts_generator.py index 4bba143..d963308 100644 --- a/src/antares/tsgen/ts_generator.py +++ b/src/antares/tsgen/ts_generator.py @@ -372,10 +372,10 @@ def generate_time_series( po_duration = 0 fo_duration = 0 - if planned_outages != 0 or mixed_outages != 0: - po_duration = pod_generator.generate_duration(day) if forced_outages != 0 or mixed_outages != 0: fo_duration = fod_generator.generate_duration(day) + if planned_outages != 0 or mixed_outages != 0: + po_duration = pod_generator.generate_duration(day) if planned_outages != 0: return_timestep = (now + po_duration) % log_size