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 Sep 27, 2023
1 parent 0b83a1f commit 2ce429a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 535 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
12 changes: 9 additions & 3 deletions python/lsst/ctrl/mpexec/cmdLineFwk.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,13 @@
TaskDef,
TaskFactory,
buildExecutionButler,
graph2dot,
pipeline2dot,
)
from lsst.utils import doImportType
from lsst.utils.threads import disable_implicit_threading

from . import util
from .dotTools import graph2dot, pipeline2dot
from .executionGraphFixup import ExecutionGraphFixup
from .mpGraphExecutor import MPGraphExecutor
from .preExecInit import PreExecInit, PreExecInitLimited
Expand Down Expand Up @@ -577,10 +578,15 @@ 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

if args.pipeline_dot:
pipeline2dot(pipeline, args.pipeline_dot)
# Pass in existing task_defs if we have them to avoid re-importing
# and expanding everything.
pipeline2dot(pipeline if task_defs is None else task_defs, args.pipeline_dot)

return pipeline

Expand Down
344 changes: 0 additions & 344 deletions python/lsst/ctrl/mpexec/dotTools.py

This file was deleted.

Loading

0 comments on commit 2ce429a

Please sign in to comment.