Skip to content

Commit

Permalink
Implicit integer ICP if only nocycle graphs.
Browse files Browse the repository at this point in the history
  • Loading branch information
hjoliver committed Sep 22, 2022
1 parent a53ac82 commit 129c2e3
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions cylc/flow/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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']:
Expand Down

0 comments on commit 129c2e3

Please sign in to comment.