Skip to content

Commit

Permalink
Move dotTools module and test to pipe_base.
Browse files Browse the repository at this point in the history
  • Loading branch information
TallJimbo authored and timj committed Aug 8, 2024
1 parent d80de8e commit 001cf14
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 0 additions & 1 deletion python/lsst/ctrl/mpexec/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.

from .cmdLineFwk import *
from .dotTools import *
from .executionGraphFixup import *
from .mpGraphExecutor import *
from .preExecInit import *
Expand Down
7 changes: 5 additions & 2 deletions python/lsst/ctrl/mpexec/cmdLineFwk.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,14 @@
QuantumGraph,
TaskFactory,
buildExecutionButler,
graph2dot,
)
from lsst.pipe.base.all_dimensions_quantum_graph_builder import AllDimensionsQuantumGraphBuilder
from lsst.pipe.base.pipeline_graph import NodeType
from lsst.utils import doImportType
from lsst.utils.logging import getLogger
from lsst.utils.threads import disable_implicit_threading

from .dotTools import graph2dot
from .executionGraphFixup import ExecutionGraphFixup
from .mpGraphExecutor import MPGraphExecutor
from .preExecInit import PreExecInit, PreExecInitLimited
Expand Down Expand Up @@ -583,7 +583,10 @@ def makePipeline(self, args: SimpleNamespace) -> Pipeline:
pipeline.write_to_uri(args.save_pipeline)

if args.expand_pipeline:
pipeline.write_to_uri(args.expand_pipeline, expand=True)
task_defs = list(pipeline)
pipeline.write_to_uri(args.expand_pipeline, expand=True, task_defs=task_defs)
else:
task_defs = None

return pipeline

Expand Down

0 comments on commit 001cf14

Please sign in to comment.