Reorder _init_logger() at top of run()
For single-tool runs, _init_logger() needs to come after the first block
of logic since it relies on the flowgraph being set up.
@@ -3685,7 +3685,6 @@ class Chip:
Runs the execution flow defined by the flowgraph dictionary.
'''
- self._init_logger(in_run=True)
flow = self.get('flow')
if not flow in self.getkeys('flowgraph'):
@@ -3708,6 +3707,9 @@ class Chip:
self.set('arg', 'step', None)
+ # Re-init logger to include run info after setting up flowgraph.
+ self._init_logger(in_run=True)
+
# Run steps if set, otherwise run whole graph
if self.get('arg', 'step'):
steplist = [self.get('arg', 'step')]
