Skip to content

Commit 001cf14

Browse files
TallJimbotimj
authored andcommitted
Move dotTools module and test to pipe_base.
1 parent d80de8e commit 001cf14

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

python/lsst/ctrl/mpexec/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
# along with this program. If not, see <https://www.gnu.org/licenses/>.
2727

2828
from .cmdLineFwk import *
29-
from .dotTools import *
3029
from .executionGraphFixup import *
3130
from .mpGraphExecutor import *
3231
from .preExecInit import *

python/lsst/ctrl/mpexec/cmdLineFwk.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,14 @@
6868
QuantumGraph,
6969
TaskFactory,
7070
buildExecutionButler,
71+
graph2dot,
7172
)
7273
from lsst.pipe.base.all_dimensions_quantum_graph_builder import AllDimensionsQuantumGraphBuilder
7374
from lsst.pipe.base.pipeline_graph import NodeType
7475
from lsst.utils import doImportType
7576
from lsst.utils.logging import getLogger
7677
from lsst.utils.threads import disable_implicit_threading
7778

78-
from .dotTools import graph2dot
7979
from .executionGraphFixup import ExecutionGraphFixup
8080
from .mpGraphExecutor import MPGraphExecutor
8181
from .preExecInit import PreExecInit, PreExecInitLimited
@@ -583,7 +583,10 @@ def makePipeline(self, args: SimpleNamespace) -> Pipeline:
583583
pipeline.write_to_uri(args.save_pipeline)
584584

585585
if args.expand_pipeline:
586-
pipeline.write_to_uri(args.expand_pipeline, expand=True)
586+
task_defs = list(pipeline)
587+
pipeline.write_to_uri(args.expand_pipeline, expand=True, task_defs=task_defs)
588+
else:
589+
task_defs = None
587590

588591
return pipeline
589592

0 commit comments

Comments
 (0)