From 129c2e30f3cf612760d54ee54c6ead8b2343e7de Mon Sep 17 00:00:00 2001 From: Hilary James Oliver Date: Fri, 23 Sep 2022 10:32:54 +1200 Subject: [PATCH] Implicit integer ICP if only nocycle graphs. --- cylc/flow/config.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/cylc/flow/config.py b/cylc/flow/config.py index 2d77f721a5b..d90f9226a3d 100644 --- a/cylc/flow/config.py +++ b/cylc/flow/config.py @@ -271,8 +271,8 @@ def __init__( self.xtrigger_mgr = xtrigger_mgr self.workflow_polling_tasks = {} # type: ignore # TODO figure out type - self.initial_point: 'PointBase' - self.start_point: 'PointBase' + self.initial_point: Optional['PointBase'] = None + self.start_point: Optional['PointBase'] = None self.stop_point: Optional['PointBase'] = None self.final_point: Optional['PointBase'] = None self.nocycle_sequences: Set['NocycleSequence'] = set() @@ -589,9 +589,12 @@ def prelim_process_graph(self) -> None: if ( 'cycling mode' not in self.cfg['scheduling'] and self.cfg['scheduling'].get('initial cycle point', '1') == '1' and - all(item in ['graph', '1', 'R1'] for item in graphdict) + all( + item in ['graph', '1', 'R1', 'startup', 'shutdown'] + for item in graphdict + ) ): - # Pure acyclic graph, assume integer cycling mode with '1' cycle + # Non-cycling graph, assume integer cycling mode with '1' cycle self.cfg['scheduling']['cycling mode'] = INTEGER_CYCLING_TYPE for key in ('initial cycle point', 'final cycle point'): if key not in self.cfg['scheduling']: